title: How to view another jPanel containing many sub-jPanels from same JFrame in netbeans (Java Swing)
body: <p>I want to show another jPanel from a button event action.
  e.g.</p>
  
  <pre><code>private void jButtonMouseClicked(MouseEvent e)
  {
      getContentPane().removeAll();
      update(getGraphics());
      //code to show another jPanel containing different sub-panels
  }
  </code></pre>