title: On a Netbeans Java application, how do I open a new page (not a popup) by clicking a button?
body: <p>I have created a Java app on Netbeans. How can I open a new page by clicking a button, without the page being a popup? I would like it to be like when creating a website with HTML, and pressing a button/link simply redirects to another page.</p>
  
  <p>All of the solutions I read explain how to create a page that pops up.</p>
  
  <p><strong>Edit and clarification:</strong> </p>
  
  <p>This is the code I am running (the action taken once the button is pressed).</p>
  
  <pre><code>private void LoginButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
         displays s = new displays();
         s.setVisible(true);
  </code></pre>
  
  <p>Once the Login Button is pressed, a new JFrame opens. Instead, I want the JFrame with the Login Button to show something different, on the same page (once the person is logged in, in this example).</p>