void (ActionEvent e) { for (int selectedRow : myMethodsTable.getSelectedRows()) { int row = myMethodsTable.convertRowIndexToModel(selectedRow); boolean value = !(Boolean)myTableModel.getValueAt(row, columnWithCheckbox); myTableModel.setValueAt(value, row, columnWithCheckbox); } }