@Override public boolean editCellAt(int row, int column, EventObject e) { boolean result = super.editCellAt(row, column, e); if (isSelectAllForMouseEvent || isSelectAllForActionEvent || isSelectAllForKeyEvent) selectAll(e); return result; }
@Override public void actionPerformed(ActionEvent actionEvent) { final AdvancedJTable parent = AdvancedJTable.this; final int[] selectedRows = parent.getSelectedRows(); parent.selectAll(); for (int selectedRow : selectedRows) parent.removeRowSelectionInterval(selectedRow, selectedRow); } };