From 404f3c8bb4fb7252ecf034abee50e875c0a5d406 Mon Sep 17 00:00:00 2001 From: Bram van Heuveln Date: Wed, 4 Feb 2015 17:11:13 -0500 Subject: [PATCH] LEGUP window is now maximized by default, addressing part of issue #45. --- code/edu/rpi/phil/legup/newgui/LEGUP_Gui.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/edu/rpi/phil/legup/newgui/LEGUP_Gui.java b/code/edu/rpi/phil/legup/newgui/LEGUP_Gui.java index 3ff09712..bf6019f4 100644 --- a/code/edu/rpi/phil/legup/newgui/LEGUP_Gui.java +++ b/code/edu/rpi/phil/legup/newgui/LEGUP_Gui.java @@ -206,6 +206,8 @@ public LEGUP_Gui(Legup legupMain) setVisible(true); + // http://stackoverflow.com/questions/479523/java-swing-maximize-window + setExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); // Centers the window setLocationRelativeTo( null );