public int getColumnCount() {
return TABLECOLUMNS.length;
}
public Object getValueAt(int rowIndex, int columnIndex) {
AlternateGenericFileExtensionRegexItem item = getItems().get(rowIndex);
switch (columnIndex) {
case TABLECOLUMN_FILEEXTENSION:
return item.fileExtension;
}
throw new IllegalArgumentException("Unknown column index: " + columnIndex);