title: Delete a row from JTable
body: <p>I have a table model. I want to delete a row from a table. I am not able to find the model.removeRow method. Can someone tell he how to remove a row? Below is the code for the model.</p>
  
  <pre><code>class TableModel extends AbstractTableModel {
  private Object[][] data;
  private String[] columnNames;
  
  public TableModel(Object[][] data) {
      this.data = data;
      columnNames=new String[1];
      columnNames[0]="Data";
  }
  
  public int getRowCount() {
      return data.length;
  }
  
  public int getColumnCount() {
      return columnNames.length;
  }
  
  public Object getValueAt(int rowIndex, int columnIndex) {
      return data[rowIndex][columnIndex];
  }
  
  public Class getColumnClass(int c) {
      return String.class;
  }
  
  public boolean isCellEditable(int rowIndes, int columnIndex) {
      return false;
  }
  
  public String getColumnName(int index) {
      return columnNames[index];
  }
  
  public void setValueAt(Object value, int rowIndex, int columnIndex) {
      data[rowIndex][columnIndex] = value;
      fireTableCellUpdated(rowIndex, columnIndex);
  }
  </code></pre>
  
  <p>}</p>