JTable : Detecting data changes How can I detect changes of particular editable cell in a JTable ?

Scott Stanchfield

The trick is to listen to the model of the table.

Table models fire events in the TableModelListener interface.

If you implement this interface, you can add a listener to the table model as follows:

  table.getModel().addTableModelListener(new MyTableModelListener());