Skip to content

Commit

Permalink
Set JFrame.setLocationByPlatform to true
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras committed Jan 17, 2019
1 parent d1ba4a6 commit a51a53d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/edu/calpoly/spritely/AnimatedCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ abstract class AnimatedCanvas extends JComponent implements Display {
AnimatedCanvas(String frameName) {
setDoubleBuffered(false);
frame = new JFrame(frameName);
frame.setLocationByPlatform(true);
frame.setLayout(new BorderLayout());
}

Expand Down

0 comments on commit a51a53d

Please sign in to comment.