I have a code which when run generates a table in swing form which contains a set of checkboxes which can be selected or unselected
When I click on the Check All ta
On line 152: JTableHeader header = (JTableHeader)(e.getSource()); you are assuming the event is on the table header. You need to check event source's class to see if it's on the header or an individual checkbox.
JTableHeader header = (JTableHeader)(e.getSource());