title: How to close a GUI when I push a JButton?
body: <p>Does anyone know how to make a jbutton close a gui? I think it is like <code>System.CLOSE(0);</code> but that didnt work. it also could be <code>exitActionPerformed(evt);</code>, but that didn't work either. just the line of code will work.</p>
  
  <p>EDIT: never mind guys. the answer was <code>System.exit(0);</code>. thanks for the help though!</p>