javaswingjtablenetbeans-6.9propertychangesupport

How to handle JTable data changed event


I have a JTable bound to a List property. I used NetBeans to add a property to my jpanel form, enabled/checked propertyChangeSupport, and bound my jTable to that property. Table is displaying the data perfectly. Please guide me how can I enable/disable a 'Save' button when data of this table is changed by double-clicking a cell and editing its contents.


Solution

  • The Table Cell Listener will listen for real changes in the data of a cell.

    A TableModelListener fires an event even if you tab out of the cell and don't actually change the data.