title: How to minimize a JFrame by clicking on a JButton
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7737751/jbutton-minimizing-a-windowjframe">JButton minimizing a window(JFrame)</a>  </p>
  </blockquote>
  
  
  
  <p>I removed the JFrame's close/minimize buttons, and I want to add my own buttons, for close, it can work by using <code>.dispose();</code>, but what should I use to minimize the JFrame if I click on a JButton?</p>
  
  <p>I think <code>.setVisible(false);</code> will hide it completely, and I won't have anything to click on,  in the TaskBar to get the JFrame back.</p>