title: creating the same jtable in 2 different JtabbedPanes
body: <p>I want to create 2 JTabbedPanes that will have the same JTable but different values in one of the columns. Right now for some reason only one of the tabs is showing up and I am not sure why. Also am I doing this the best way by creating 2 different <code>DefaultTableModel</code>'s?</p>
  
  <pre><code>public static void tableMaker(DefaultTableModel m, DefaultTableModel m1, final Map&lt;String, NumberHolder&gt; uaCount)
  {
      final JFrame frame = new JFrame("Strings");     
      JPanel panel1 = new JPanel();
              JPanel panel2 = new JPanel();
      JTabbedPane tabbedPane = new JTabbedPane();
  
      m.addColumn("String");
      m.addColumn("Occurrences");
              m1.addColumn("String");
      m1.addColumn("Occurrences");
      JTable table = new JTable(m);
              JTable table = new JTable(m1);
      table.setAutoCreateRowSorter(true);
      JScrollPane scrollPane1 = new JScrollPane(table1);
              JScrollPane scrollPane2 = new JScrollPane(table2);
      frame.getContentPane().setLayout(new BorderLayout());                                                       
      panel1.add(scrollPane1);
              panel2.add(scrollPane2);
      frame.getContentPane().add(panel1, BorderLayout.CENTER);
              frame.getContentPane().add(panel2, BorderLayout.CENTER);        
      frame.add(tabbedPane, BorderLayout.NORTH);
      tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
      tabbedPane.addTab("Tab 1", null, panel1,
                  "String length 2");
      tabbedPane.addTab("Tab 1", null, panel2,
                  "String length 2");
  </code></pre>