In Java Swing I have created a JTable which uses a table model class which extends DefaultTableModel. As the values of one row of the table are of boolean type, these are displayed as check-boxes. As I want to add to these check-boxes ‘item listeners’ classes, I do need to initialize each of these check-boxes. But how do I do if these are automatically created by the table model?
In Java Swing I have created a JTable which uses a table model class
Share
As these CheckBoxes change the underlying data, it should be sufficient to add a
TableModelListenerand react totableChangedevents of that column.