title: Can we add panel inside panel to create nested tabbed menu?
body: <p>I have written one small code to add three panels to a main panel but the code is not working.</p>
  
  <p>JPanel jp,child1,child2,child3; 
      JTabbedPane jtp;</p>
  
  <pre><code>public Panel4()
  {
      jtp=new JTabbedPane();
      jp=new JPanel();
      child1=new JPanel();
      child2=new JPanel();
      child3=new JPanel();
      jtp.addTab("Child1",child1);
      jtp.addTab("Child2",child2);
      jtp.addTab("Child3",child3);
      jp.setLayout(null);
      jtp.setVisible(true);
      jp.add(jtp);
      jp.setVisible(true);
  }
  </code></pre>
  
  <p>Here i am adding this jp to another JTabbedPane which is added in a JFrame.
  I can see the panel jp but not the childs (child1,child2,child3).
  Please suggest what is wrong here.</p>