title: Switch between different JPanels in one JFrame without CardLayout-buttons
body: <p>I'm new at Java GUI and I'm trying to make a program that shows a login screen and once logged in, a menu. 
  What I am looking for is a way to navigate through different JPanels in just one JFrame. To navigate the user should use buttons located inside these panels. </p>
  
  <p>I use Netbeans to do this. The furthest I got is to open one JPanel in a JFrame, I've been trying to close one and open another but it won't work because the current panel stays open. </p>
  
  <p>The reason I do not want to use the CardLayout is because I do not wish to have to tabs visible. I don't think you can hide them... </p>
  
  <p>I hope you guy's can help me out, </p>
  
  <p>thanks in advance!!</p>