title: Is there a way to tell if a JFrame is "Maximised" (MS Windows)
body: <p>I've been Java applications on OS X, and haven't had the opportunity to fully test in different places.</p>
  
  <p>There are 2 different <code>JFrame</code>s. The second is loaded exactly in place of the first one, and as such needs to have its size and location set to the same as the first.</p>
  
  <p>This works fine, but I noticed a lot of Windows users seem to maximise the first window. When the second JFrame loads, it has the same size, but is not "maximised".</p>
  
  <p>Maximised windows in the MS Windows world have a slightly different state and are treated differently by the OS.</p>
  
  <p>How can I tell if a JFrame is Maximised, and how can I maximise one myself?</p>