Results 1 to 2 of 2
- 07-25-2012, 07:57 PM #1
Member
- Join Date
- Jul 2012
- Posts
- 1
- Rep Power
- 0
Sorted JTable - keep row selection on sort
Hello All,
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?
thanks!
- 07-25-2012, 09:13 PM #2
Similar Threads
-
Column Sort on JTable outside selection out of bounds index exception
By Redefine12 in forum AWT / SwingReplies: 6Last Post: 04-11-2012, 10:31 PM -
Selection Sort. please help!
By cassato in forum New To JavaReplies: 4Last Post: 03-14-2011, 10:26 PM -
Is this a Selection Sort?
By Metastar in forum New To JavaReplies: 2Last Post: 10-22-2010, 05:00 AM -
Problem with selection sort
By Metastar in forum New To JavaReplies: 6Last Post: 10-21-2010, 02:18 AM -
selection sort
By mayhewj7 in forum New To JavaReplies: 1Last Post: 04-29-2009, 12:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks