* make sure the main window is not displayed out of screen bounds

This commit is contained in:
Reinhard Pointner 2014-12-22 18:58:24 +00:00
parent 8e857c498f
commit ccd66ff773
1 changed files with 2 additions and 2 deletions

View File

@ -228,8 +228,8 @@ public class Main {
// restore previous size and location
restoreWindowBounds(frame, Settings.forPackage(MainFrame.class));
} catch (Exception e) {
// just use platform default location
frame.setLocationByPlatform(true);
// make sure the main window is not displayed out of screen bounds
frame.setLocation(120, 80);
}
frame.addWindowListener(new WindowAdapter() {