title: Closing JFrame with button click
body: <p>I have the jButton1 private member of JFrame and i wanted to close the frame when the button is clicked.</p>
  
  <pre><code>jButton1.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e)
      {
      }
  });
  </code></pre>
  
  <p>I wanted to do <code>super.close()</code> but could not find close for super. Is there some way to refer to the JFrame</p>