I'm a few years old with a problem that I still can not solve completely today. When I add a TableRowSorter
to a JTable
automatically the columns can be ordered by clicking and thus I have a problem getting the correct index, yes already I tried to use ConvertIndexToView
and ConvertIndexToModel
, I already searched in several places in how to disable the autosorter option by clicking on the columns but without success.
Here it is working perfectly I selected index 1 and the record came correct according to the number selected
SecondImagewitherror,alreadyinthisIselectedtheindex1andwiththeactivefilterasshownpullsmethesamerecordasinthepreviousimageotherthantheview