permaculture playing cards
The moose likes Swing / AWT / SWT and the fly likes JTable selection problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable selection problem" Watch "JTable selection problem" New topic

JTable selection problem

Thomas Suer
Ranch Hand

Joined: Sep 03, 2001
Posts: 50
I have a problem regarding the selection of table rows. Let's say there is a table displaying 10 rows. For instance the 2nd and 3rd row are selected. When I then change the sorting order of the displayed elements (e.g. after the user clicks on a table header) the selected rows stay the same, that means the 2nd and 3rd row are still selected instead of the previous selected elements.
Does anyone has an idea to solve this problem?
Thanks in advance
I agree. Here's the link:
subject: JTable selection problem
It's not a secret anymore!