* restoreWindowBounds not working
This commit is contained in:
parent
12cf2f7411
commit
bb38864e69
|
@ -255,6 +255,13 @@ public class Main {
|
|||
}
|
||||
}
|
||||
|
||||
try {
|
||||
// restore previous size and location
|
||||
restoreWindowBounds(frame, Settings.forPackage(MainFrame.class));
|
||||
} catch (Exception e) {
|
||||
// don't care, doesn't make a difference
|
||||
}
|
||||
|
||||
frame.setLocationByPlatform(true);
|
||||
frame.addWindowListener(new WindowAdapter() {
|
||||
|
||||
|
@ -271,13 +278,6 @@ public class Main {
|
|||
}
|
||||
});
|
||||
|
||||
try {
|
||||
// restore previous size and location
|
||||
restoreWindowBounds(frame, Settings.forPackage(MainFrame.class));
|
||||
} catch (Exception e) {
|
||||
// don't care, doesn't make a difference
|
||||
}
|
||||
|
||||
// start application
|
||||
frame.setVisible(true);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class SinglePanelFrame extends JFrame {
|
|||
c.add(headerPanel, "growx, dock north");
|
||||
c.add(panel);
|
||||
|
||||
setSize(760, 615);
|
||||
setSize(760, 480);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue