Skip to content

Commit

Permalink
LEGUP window is now maximized by default, addressing part of issue #45.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram van Heuveln committed Feb 4, 2015
1 parent e1eccfb commit 404f3c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/edu/rpi/phil/legup/newgui/LEGUP_Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 404f3c8

Please sign in to comment.