title: How to make CardLayout inside JTabbedPane
body: <p>I am working on a project with <code>JTabbedPane</code></p>
  
  <p>When I click TAB2, it shows the PANEL 2. Done</p>
  
  <p>PANEL 2 consist of a <code>JButton</code> "Next" that will switch to PANEL 2.1 and <code>JButton</code> "Previous" to</p>
  
  <p>switch it back to PANEL 2 while still in the TAB 2. </p>
  
  <p>So, it is a Card Layout inside Tab2? </p>
  
  <p>Thanks for helping! </p>
  
  <pre><code>-----------------------------
  TAB 1  |  TAB 2 |  TAB 3 |  
  -----------------------------
                               -
                               -
            PANEL  2           -
                               -
                               -
                               -
                               -
        "Previous" "NEXT"      -
  ==========================   =
  </code></pre>