title: Change Column names of AbstractTableModel
body: <p>Is it possible to change AbstractTableModel column names dynamically? </p>
  
  <p>I am trying to implement <strong>setColumnName(0, "Speed rpm")</strong> method.</p>
  
  <pre><code>public class MyModel extends AbstractTableModel {
  
  private String[] columnNames = {"Speed", "Pressure",
      "Force"};
  public ArrayList&lt;Values&gt; list;
  
  public MyModel() {
  
      list = new ArrayList&lt;Values&gt;();
  }
  
  public void setColumnName(int i, String name) {
      columnNames[i,name];
  }
  @Override
  public int getRowCount() {
      return list.size();
  }
  
  @Override
  public int getColumnCount() {
      return columnNames.length;
  }
  
  @Override
  public Object getValueAt(int rowIndex, int columnIndex) {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }
  </code></pre>
  
  <p>}</p>