title: setMaximumSize not working in java
body: <p>I hava a java program with a JFrame</p>
  
  <p>I am using absolute positioning</p>
  
  <p>here is my main function</p>
  
  <pre><code>public static void main(String[] args) {
      ape Ape = new ape();
      Ape.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      Ape.setSize(1000,1000);
      Ape.setMinimumSize(new Dimension(1000,1000));
      Ape.setMaximumSize(new Dimension(1000,1000));
      Ape.setVisible(true);
  }
  </code></pre>
  
  <p>When I run the program I try to resize it and make the window smaller but I can't</p>
  
  <p>when I try to make the window bigger it works fine I basicly skips the <code>setMaximumSize()</code> function</p>
  
  <p>I have read around and aparently this has happened before</p>
  
  <p>is this a known bug?</p>
  
  <p>if so I heard I could make a Window Listener, when I tried it I implemented the functions that WindowListener needed but could not find anything to solve my problem</p>
  
  <p>please try this yourself and see what happens...</p>
  
  <p>thanks in advance</p>
  
  <p>PS... please don't laugh about the names I give my classes... :)</p>