diff --git a/core/src/processing/core/PSurfaceAWT.java b/core/src/processing/core/PSurfaceAWT.java index c5c6c0c23..cb56381b2 100644 --- a/core/src/processing/core/PSurfaceAWT.java +++ b/core/src/processing/core/PSurfaceAWT.java @@ -831,12 +831,10 @@ public class PSurfaceAWT implements PSurface { // canvas.setSize(wide, high); // frame.setSize(wide, high); - setFrameSize(); //wide, high); + if (frame != null) { + frame.setLocationRelativeTo(null); + } setCanvasSize(); - frame.setLocationRelativeTo(null); -// if (frame != null) { -// frame.setLocationRelativeTo(null); -// } GraphicsConfiguration gc = canvas.getGraphicsConfiguration(); // If not realized (off-screen, i.e the Color Selector Tool), gc will be null. @@ -1540,4 +1538,4 @@ public class PSurfaceAWT implements PSurface { void debug(String format, Object ... args) { System.out.format(format + "%n", args); } -} \ No newline at end of file +}