I am trying to determine how to keep track of rows that have been edited by the user in a JTable. I would like to put the row that has been edited into an array to then build sql update statements. I am not sure how to determine when editing has occurred in general as I have multiple cell editors. Any help is appreciated
posted 15 years ago
Create your own data model and override the setValueAt() method. It takes row as 1 of the parameters. It gets executed when the user exits edit mode in a table cell. Keep track of the rows that are flagged from this method. Look at the API for DefaultTableModel.