I'm glad you got it sorted out, but for the record, it sounds like you're going about it the wrong way- as other people have said, you should probably just base the rendering off the model, not the...
Type: Posts; User: KevinWorkman
I'm glad you got it sorted out, but for the record, it sounds like you're going about it the wrong way- as other people have said, you should probably just base the rendering off the model, not the...
I see this is marked as solved, did you get it figured out?
Erm, I think you're probably approaching this the wrong way. But again, without an SSCCE (that's not your whole project, that's a single file that contains the bare minimum) I can't really tell. I...
Now I'm really confused. An SSCCE sure would help. Does adding a MouseListener to the JTable not work? And are you sure you can't just convert the view index to a model index (JTable has some...
That code isn't an SSCCE because it doesn't show us anything, and we can't copy and paste it to run it.
Hint: You can add a MouseListener to the JTable's JTableHeader. Consult the API for useful...
You could do it with a MouseEvent. What didn't work about it? Where's your SSCCE demonstrating what you've tried?
You could also extend TableRowSorter and override toggleSortOrder().