preferences now appear in the center

This commit is contained in:
Diego Waxemberg
2013-12-21 00:08:41 -05:00
parent 81c8a09385
commit 9f2fa09ef3

View File

@@ -75,7 +75,7 @@ public class PreferencesFrame extends JFrame {
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
//center on screen
this.setLocation((int)dim.getWidth()/2-this.getWidth(), (int)dim.getHeight()/2-this.getHeight());
this.setLocation((int)dim.getWidth()/2-this.getWidth()/2, (int)dim.getHeight()/2-this.getHeight()/2);
this.setVisible(true);
}