From 2cc9ed829e7ddd5bf94a9cd628f0c17400e4b665 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sun, 24 Dec 2017 12:43:55 +0100 Subject: [PATCH] Fixed CPU Window size --- .../warp/picalculator/gui/graphicengine/cpu/SwingWindow.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }