Sorted JTable - keep row selection on sort
I have a JTable with a TableRowSorter. I've set setUpdateSelectionOnSort to false. When clicking on the column headers (where I toggle sort direction), it maintains the selected row properly.
If I edit a sorted column however (causing it to resort), it does not follow the selection. The row position just stays while the row i was just editing get's sorted off to another spot. Is there some way I can avoid this?
Re: Sorted JTable - keep row selection on sort
Moved from Advanced Java