title: Error adding Row into JTable
body: <p>I have a <code>JButton</code> which, once it is pressed, adds a row into a <code>JTable</code>. I have tried to make this by implementing the following code.</p>
  
  <pre><code>columNames = new Vector&lt;&gt;();
  columNames.addElement("Name");
  columNames.addElement("CC");
  columNames.addElement("Age");
  columNames.addElement("PhoneNumber");
  columNames.addElement("Date");
  columNames.addElement("Amount$");
  
  Object[] dataList = {"name", "cc", "age", "phone", "date", "amount"};
  
  data = new DefaultTableModel(columNames, 0);
  data.addRow(dataList);
  
  table = new JTable(data);
  JScrollPane scrollTable = new JScrollPane(table);
  scrollTable.setBounds(22, 78, 764, 177);
  scrollTable.setViewportView(table);
  
  //ActionListener method!.
  
  if(e.getActionCommand().equals("Add client"))
  {
      Object[] dataList = {"name", "cc", "age", "phone", "date", "amount"};
      data.addRow(dataList);
  
      DefaultTableModel defaut = (DefaultTableModel) table.getModel();
      defaut.addRow(dataList);
  }
  </code></pre>
  
  <p>It throws <code>Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException</code>:<code>-1</code></p>
  
  <p>How can I solve it?</p>