If you want to update the database when the user stops editing a field,
you should create a custom TableCellEditor. The best way is to subclass DefaultCellEditor, and override stopCellEditing as follows:
But keep in mind that this will update your table every time a value is edited and the change is "committed" in the table. If you need to edit a lot of columns in one row, you will have an update for every column. One bulk update of the entire row would be better.