If the columns of my JTable are not sorted, I can use getSelectedRows () and get the values of my rows without any problems. But, if the user clicks on the column and row name in alphabetical order in that column, getSelectedRows () returns not the currently selected rows, but the rows that were originally there before the alphabet.
How can I get the currently selected rows when the columns are in alphabetical order?
source
share