title: Different hierarchy
body: <p>The line of error is noted in the code below.  Something I notice is if I highlight the word Customer and hold down ctrl-T it brings up the hierarchy which shows Customer - SwimCalc which is right. But if I do the same with Contractor it says Contractor - SwimCalc.Customer</p>
  
  <pre><code>public class SwimCalc extends JFrame implements ActionListener { 
      private JTabbedPane jtabbedPane;  
      private JPanel Customers; 
      private JPanel Contractors;  
      private List&lt;Customer&gt; customers = new ArrayList&lt;Customer&gt;(); 
  
      // this fails 
      private List&lt;Contractor&gt; contractors = new ArrayList&lt;Contractor&gt;(); 
  
      JTextArea NameTextCustomers, ExistTextCustomers, MessageTextCustomers,  
      NameTextContractors, ExistTextContractors, MessageTextContractors; 
      JTextField lengthTextPool, widthTextPool, depthTextPool, volumeTextPool;  
  
      public SwimCalc() {  
          setTitle("Volume Calculator");  
          setSize (300, 200);  
  
          JPanel topPanel = new JPanel();  
          topPanel.setLayout( new BorderLayout() );  
          getContentPane().add( topPanel );  
  
          createCustomers();  
          createContractors();  
  
          jtabbedPane = new JTabbedPane();  
          jtabbedPane.addTab("Customer", Customers);  
          topPanel.add(jtabbedPane, BorderLayout.CENTER);  
      } 
  }
  </code></pre>