Ok i am almost done with the assignment. But i am stuck with this problem
How do you get the old values (call this
String[] oldData] of a particular row in the JTable before the user starts editing, say column 5 and column 6 in that row (call the new set of values String[] newData).
What i am planning to do is get the oldData and get the values of the same record number from the database, call it String[] dbData. Compare them, they should be equal. I will update that record in the database with the newData.
I think Phil is also using this technique.
But i am not able to get the old values from my tablemodel after the user changes the values. Seems like it updates the tablemodel with the latest changes being done to the JTable.
Any ideas how i should procced. I am using the AbstractTableModel.
Arun