From a51a53d9effa49cf668dd88cb079d4b75c9ce7f5 Mon Sep 17 00:00:00 2001 From: Bill Foote Date: Thu, 17 Jan 2019 15:14:49 -0800 Subject: [PATCH] Set JFrame.setLocationByPlatform to true --- src/edu/calpoly/spritely/AnimatedCanvas.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/edu/calpoly/spritely/AnimatedCanvas.java b/src/edu/calpoly/spritely/AnimatedCanvas.java index 91cc54b..94e9951 100644 --- a/src/edu/calpoly/spritely/AnimatedCanvas.java +++ b/src/edu/calpoly/spritely/AnimatedCanvas.java @@ -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()); }