ninjamonkeys.co.za
Maximizing windows in Java Swing
JFrame frame = new JFrame(); // add all components frame.pack(); frame.setExtendedState(JFrame.MAXIMIZED_BOTH); frame.setVisible(true); The key here is that you must call setExtendedState after any…