public void setValueAt(Object aValue, int rowIndex, int columnIndex) { if (rowIndex >= getRowCount()) { return; } final Row row = myData.get(rowIndex); switch (columnIndex) { case NAME_TABLE_COLUMN: row.name = (String) aValue; break; case EXPRESSION_TABLE_COLUMN: row.value = (TextWithImports) aValue; break; } }