Gets size instead of preferred size
This commit is contained in:
parent
2fac5f403d
commit
b1a0d4f2a9
@ -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(
|
||||||
|
@ -103,7 +103,7 @@ public class GUI implements ActionListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Dimension getSize() {
|
public Dimension getSize() {
|
||||||
return frame.getContentPane().getPreferredSize();
|
return frame.getContentPane().getSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user