title: jtable custom model
body: <p>I'm fighting with a implementation of a jTable. I created my own TableModel class. And there is the problem. Somehow my tableData array (ArrayList of Obejct[]) is not being written correctly. At the end I get a table where all the rows are having the values.</p>
  
  <p>Does anyone see why the ArrayList is not written correctly?</p>
  
  <pre><code>class MyTableModel extends AbstractTableModel {
      private String[] columnNames = {"Auftragsnummer",
                                      "Kunde",
                                      "Kunden Nr.",
                                      "Erfasst",
                                      "Kommt",
                                      "Geht",
                                      "Kommentar"};
  
      String[] temp_delete = new String[10];
      int index_delete = 0;
  
      private ArrayList&lt;Object[]&gt; tableData = new ArrayList&lt;Object[]&gt;();
  
      public int getColumnCount() {
          return columnNames.length;
      }
  
      public int getRowCount() {
          return tableData.size();
      }
  
      public String getColumnName(int col) {
          return columnNames[col];
      }
  
      public Object getValueAt(int row, int col) {
          Object [] temp = tableData.get(row);
  
          return temp[col];
      }
  
      public void removeAllEntry(){
          for (int i = 0; i &lt; tableData.size(); i++) {
              tableData.remove(i);
          }
          model.fireTableDataChanged();
      }
  
       public Class getColumnClass(int c) {
          return getValueAt(0, c).getClass();
      }
  
  
      public boolean isCellEditable(int row, int col) {
  
          switch (col){
              case 4:
                  return true;
              default: return false;
          }
      }
  
       public void addText(Object[] object) {
          tableData.add(object);
  
         fireTableDataChanged();
        }
  </code></pre>
  
  <p>}</p>