Gets size instead of preferred size

This commit is contained in:
Kristian Knarvik 2018-02-18 22:57:39 +01:00
parent 2fac5f403d
commit b1a0d4f2a9
2 changed files with 2 additions and 1 deletions

View File

@ -322,6 +322,7 @@ public class Profile {
gui.getSize().width, gui.getSize().width,
gui.getSize().height gui.getSize().height
)); ));
System.out.println("Saving: " + gui.getSize().width + ", " + gui.getSize().height);
file.close(); file.close();
for (Profile profile : profiles) { for (Profile profile : profiles) {
StringBuilder saveString = new StringBuilder(String.format( StringBuilder saveString = new StringBuilder(String.format(

View File

@ -103,7 +103,7 @@ public class GUI implements ActionListener {
} }
public Dimension getSize() { public Dimension getSize() {
return frame.getContentPane().getPreferredSize(); return frame.getContentPane().getSize();
} }
/** /**