* restoreWindowBounds not working

This commit is contained in:
Reinhard Pointner 2013-04-09 18:20:52 +00:00
parent 12cf2f7411
commit bb38864e69
2 changed files with 8 additions and 8 deletions

View File

@ -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);
}

View File

@ -43,7 +43,7 @@ public class SinglePanelFrame extends JFrame {
c.add(headerPanel, "growx, dock north");
c.add(panel);
setSize(760, 615);
setSize(760, 480);
}