When I edit a JTable cell in Java and persist it using Hibernate and then click off the cell my new value is saved but the cell changes back to original value when the cell loses focus. I am using a TableModel for my JTable that extends AbstractTableModel. I implement the method
public void setValueAt(Object value, int row, int col)
in my class that extends AbstractTableModel. In this method I use an update to write the new value to the database through Hibernate. The new value does get written to the database but when I click off the table cell the cell I changed goes back to the old value. So the JTable does not refresh itself. I do call the method fireTableDataChanged(); at the end of the
setValueAt(Object value, int row, int col) method.