Hi,
Can someone help explain to me (or point to a link) about how can I display permanently the values edited in the cells?
I have a table with three columns:
Song, Rel. Year, Lyrics
Song column is just a
String.
Rel. Year is Date.
Lyrics is a link to a specified file that contains the lyrics.
As I want the user to edit the values in the table, I wrote TableModel, CellEditor, and CellRenderer. Whatever I tried, the data entered disappeared when I tab (move) to another cell. I tried this in the CellEditor:
public Object getCellEditorValue() {
return new String(getText());
}
I don't know if this is the reason really. So what I should do to make the changes remained when I move to other cells?
Thanks in advance