title: Row won't add to the end my JTable using vectors
body: <p>I'm creating a Swing Application for work and I'm having issues with my JTable.</p>
  
  <p>The process is to check to see if a file exist and if it does, retrieve the information from the file and populate the JTable.  This works fine.</p>
  
  <p>I enter data into my textfields, select from dropdown box and when I click on the save button, I write the information to the file (which gets completed with no issue) and after the file is created, I would like to have the row added to my the end of the table.  This is where I'm having issues.  </p>
  
  <p>I end up calling the addRow method in the OutputTable my passing the data from what the user has entered.  The data is stored in the vector properly as you can see here:</p>
  
  <pre><code>d1 is[999999999, 27-May-2016, asdfasdf, OCOB, UA2, 1, asdf,     sadsadfasdf, IU2, 1, 28-May-2016, In Progress]
  d2 is[999999999, 27-May-2016, asdfasdf, OCOB, UA2, 1, asdf,     sadsadfasdf, IU2, 1, 28-May-2016, In Progress]
  </code></pre>
  
  <p>But my <code>dtm.addRow(data)</code> won't add the row to the table.</p>
  
  <p>Can someone help?</p>
  
  <p>This is my class that retrieves the data from the file to populate the table at the beginning of my application.  Action is performed by a button.</p>
  
  <p>My addRow method is in this class.</p>
  
  <pre><code>public class OutputTable {
  
      @SuppressWarnings({ "rawtypes", "unchecked" })
      public static void populateTable(Vector data){
  
          Vector columnName = new Vector(12);
  
          columnName.addElement("ID");
          columnName.addElement("&lt;HTML&gt;DATE &lt;BR/&gt;Retrieve");
          columnName.addElement("&lt;HTML&gt;Name of &lt;BR/&gt;Module");
          columnName.addElement("&lt;HTML&gt;Type of &lt;BR/&gt;Module");
          columnName.addElement("&lt;HTML&gt;Environment &lt;BR/&gt;retrieve from");
          columnName.addElement("&lt;HTML&gt;Stage &lt;BR/&gt;retrieve from");
          columnName.addElement("&lt;HTML&gt;Working &lt;BR/&gt;location");
          columnName.addElement("&lt;HTML&gt;Description &lt;BR/&gt;of changes");
          columnName.addElement("&lt;HTML&gt;Environment &lt;BR/&gt;moved to");
          columnName.addElement("&lt;HTML&gt;Stage &lt;BR/&gt;move to");
          columnName.addElement("&lt;HTML&gt;Date of the &lt;BR/&gt;endevor");
          columnName.addElement("&lt;HTML&gt;Current &lt;BR/&gt;Work &lt;BR/&gt;Status");
  
          DefaultTableModel dtm = new DefaultTableModel(data, columnName);
  
          final JTable table = new JTable();
  
          table.setModel(dtm);
          table.setFillsViewportHeight(true);
          table.setPreferredScrollableViewportSize(table.getPreferredSize());
  
          JScrollPane scrollPane = new JScrollPane(table);
          table.getTableHeader().setPreferredSize(new Dimension(scrollPane.getWidth(),60));
          scrollPane.setViewportBorder(UIManager.getBorder("Table.scrollPaneBorder"));
          scrollPane.setBounds(10, 425, 875, 195);
  
          EndevorChanges.frmEndevorChanges.getContentPane().add(scrollPane); 
  
  }
  
      public static void addRow(String UserID, String DateRtrv, String ModRtrv, String ModType, String EnvFrom, String StgFrom, String WrkngLct, String Desc, String EnvTo, String StgTo, String DateTo, String WrkSts) {
  
          System.out.println("Im inside the addrow method.");
  
          Vector&lt;Vector&lt;String&gt;&gt; data = new Vector&lt;Vector&lt;String&gt;&gt;();
          Vector&lt;String&gt; d = new Vector&lt;String&gt;();
          Vector columnName = new Vector(12);
          String[] strngArray = {UserID, DateRtrv, ModRtrv, ModType, EnvFrom, StgFrom, WrkngLct, Desc, EnvTo, StgTo, DateTo, WrkSts};
  
      /*  columnName.addElement("ID");
          columnName.addElement("&lt;HTML&gt;DATE &lt;BR/&gt;Retrieve");
          columnName.addElement("&lt;HTML&gt;Name of &lt;BR/&gt;Module");
          columnName.addElement("&lt;HTML&gt;Type of &lt;BR/&gt;Module");
          columnName.addElement("&lt;HTML&gt;Environment &lt;BR/&gt;retrieve from");
          columnName.addElement("&lt;HTML&gt;Stage &lt;BR/&gt;retrieve from");
          columnName.addElement("&lt;HTML&gt;Working &lt;BR/&gt;location");
          columnName.addElement("&lt;HTML&gt;Description &lt;BR/&gt;of changes");
          columnName.addElement("&lt;HTML&gt;Environment &lt;BR/&gt;moved to");
          columnName.addElement("&lt;HTML&gt;Stage &lt;BR/&gt;move to");
          columnName.addElement("&lt;HTML&gt;Date of the &lt;BR/&gt;endevor");
          columnName.addElement("&lt;HTML&gt;Current &lt;BR/&gt;Work &lt;BR/&gt;Status");
          */
          DefaultTableModel dtm = new DefaultTableModel(data, columnName);
  
          JTable table = new JTable();
  
          //table.setModel(dtm);
  
          System.out.println("the data is: " + data.toString());
  
          for (int lmnts = 0; lmnts &lt; 12; lmnts++){
              d.add(strngArray[lmnts]);
              System.out.println("element" + lmnts + " value is: " + strngArray[lmnts]);
              System.out.println("d1 is" + d);
          }
          data.add(d);
  
          System.out.println("d2 is" + d);
  
          dtm.addRow(data);
          //dtm.insertRow(4, data);
  
          dtm.fireTableDataChanged();
  
          table.repaint();
  
          System.out.println("at the end of the method");
  
      }
  
  }
  </code></pre>