title: JFrame.setExtendedState doesn't actually maximise
body: <pre><code>public static void main(String args[]){
      JFrame frame = new JFrame();
      frame.setExtendedState(JFrame.MAXIMISED_BOTH);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setVisible(true);
  }
  </code></pre>
  
  <p>I've used this code to maximise a JFrame, but instead of actually maximising the frame, it just sets the window size to that of the screen, without actually changing the state, so clicking the maximize button doesn't actually downscale it again.</p>
  
  <p>Am I using the wrong command or something?</p>