I have a JTable where headers are sortable, Below is the code that I have used:
TableRowSorter<FolderModel> sorter = new TableRowSorter<FolderModel>(folderModel);
setRowSorter(sorter);
One column header has a checkbox, rendered with a custom renderer, to check and uncheck all the column values.
I have to choose a different gesture to distinguish between check/uncheck and sorting. I think a single click to sort and a double click to check/uncheck, but the problem is that also a double click fires sorting. What solution is possible?