title: How to make a JFrame button open another JFrame class in Netbeans?
body: <p>I have a <code>JFrame</code> class and it was made in the design section on Netbeans. I am trying to make a log in button that takes closes the current frame and opens another, is there anyway I can do that? </p>
  
  <p>I have tried: </p>
  
  <pre><code>JFrame frame = new JFrame(); 
  </code></pre>
  
  <p>But I want it to be editable in the design section!</p>