title: Problem with setVisible(boolean)
body: <p>I have a <code>JFrame</code> with some component on it. I want that the frame disappears when i click on a special button for example <code>exit button</code>.</p>
  
  <p>I wrote this code in exit button</p>
  
  <pre><code>this.setvisible(false);
  </code></pre>
  
  <p>but it only hides the component on it and frame doesn't disappear.</p>
  
  <p>What can I do that when I click on <code>exit button</code> the frame disappears?</p>