ApplicationFrame now opens up on the center of the screen

This commit is contained in:
Kjistóf 2016-05-14 02:22:52 +02:00
parent 665ac519c2
commit a9263a41e4

View File

@ -44,6 +44,7 @@ public class ApplicationFrame implements Runnable
jframe = new JFrame(); jframe = new JFrame();
jframe.setFocusable(true); jframe.setFocusable(true);
jframe.setMinimumSize(new Dimension(menuDimension)); jframe.setMinimumSize(new Dimension(menuDimension));
jframe.setLocationRelativeTo(null);
jframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); jframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
initMapselector(); initMapselector();