diff --git a/src/main/java/org/warp/picalculator/gui/graphicengine/cpu/SwingWindow.java b/src/main/java/org/warp/picalculator/gui/graphicengine/cpu/SwingWindow.java index c03ccd42..25607384 100755 --- a/src/main/java/org/warp/picalculator/gui/graphicengine/cpu/SwingWindow.java +++ b/src/main/java/org/warp/picalculator/gui/graphicengine/cpu/SwingWindow.java @@ -209,7 +209,9 @@ public class SwingWindow extends JFrame { @Override public void setSize(int width, int height) { - c.setSize(width*mult, height*mult); + c.setSize(new Dimension(width*mult, height*mult)); + c.setPreferredSize(new Dimension(width*mult, height*mult)); + super.getContentPane().setSize(new Dimension(width*mult, height*mult)); super.getContentPane().setPreferredSize(new Dimension(width*mult, height*mult)); super.pack(); }