title: Reusing a JPanel in NetBeans GUI Designer
body: <p>This is in NetBeans 6.5, Java 6.</p>
  
  <p>I have the following hierarchy in the NetBeans GUI Designer:</p>
  
  <pre><code>JFrame
    JTabbedPane
      JPanel X
        &lt;...&gt;
      JPanel
        JButton
        JPanel Y
          &lt;...&gt;
        JButton
  </code></pre>
  
  <h2>Question:</h2>
  
  <p>JPanel Y is identical to JPanel X, so I'd like to simply reuse JPanel X in both places, but how do I do this inside the GUI Builder?</p>
  
  <h2>Attempts:</h2>
  
  <p>I tried copy-pasting JPanel X, but it creates a full "deep" copy (JPanel X1, etc), duplicating everything in JPanel X.</p>
  
  <p>Some googling indicated it might be possible to add it to the Palette, but I haven't found a way to add a simple JPanel to the palette (as opposed to a complete JFrame).</p>