}
}
});
// Change the text cell editor to replace text instead of appending it for all columns.
ReplaceTextCellEditor cellEditor = new ReplaceTextCellEditor();
for (int i = 0; i < table.getColumnModel().getColumnCount(); i++) {
table.getColumnModel().getColumn(i).setCellEditor(cellEditor);
}
// Shows the caret while editing cell.