title: Java swing setMaximumSize not working
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4061010/setmaximumsize-not-working-in-java">setMaximumSize not working in java</a>  </p>
  </blockquote>
  
  
  
  <p>I've having trouble with my <code>JFrame</code> subclass. I need to set a Maximum height. </p>
  
  <p>But <code>setMaximumSize</code> does not work. It seems that's a bug in java (setMinimumSize works). How could prevent a <code>JFrame</code> from getting higher than a given height ? </p>