* make sure the main window is not displayed out of screen bounds
This commit is contained in:
parent
8e857c498f
commit
ccd66ff773
|
@ -228,8 +228,8 @@ public class Main {
|
||||||
// restore previous size and location
|
// restore previous size and location
|
||||||
restoreWindowBounds(frame, Settings.forPackage(MainFrame.class));
|
restoreWindowBounds(frame, Settings.forPackage(MainFrame.class));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// just use platform default location
|
// make sure the main window is not displayed out of screen bounds
|
||||||
frame.setLocationByPlatform(true);
|
frame.setLocation(120, 80);
|
||||||
}
|
}
|
||||||
|
|
||||||
frame.addWindowListener(new WindowAdapter() {
|
frame.addWindowListener(new WindowAdapter() {
|
||||||
|
|
Loading…
Reference in New Issue