From a9263a41e437a178d28c50dbdd4ca68a56146f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sat, 14 May 2016 02:22:52 +0200 Subject: [PATCH] ApplicationFrame now opens up on the center of the screen --- cicaprojekt/ApplicationFrame.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cicaprojekt/ApplicationFrame.java b/cicaprojekt/ApplicationFrame.java index 5f571a2..5fedbfe 100644 --- a/cicaprojekt/ApplicationFrame.java +++ b/cicaprojekt/ApplicationFrame.java @@ -44,6 +44,7 @@ public class ApplicationFrame implements Runnable jframe = new JFrame(); jframe.setFocusable(true); jframe.setMinimumSize(new Dimension(menuDimension)); + jframe.setLocationRelativeTo(null); jframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); initMapselector();