File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes retrieving the event of JTable sorting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "retrieving the event of JTable sorting" Watch "retrieving the event of JTable sorting" New topic

retrieving the event of JTable sorting

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808

Hi All Java Ranchers,

I have a question for You. I want to retrieve the event of table sorting - the user clicks the table's header and I want to catch that event. I know that I can set a listener on table's column model, but I use AbstractTableModel so I have to use manual event triggering (fireXXX()). Do You have any ideas on implementing that case?

Thanks for all of Your help and time.

Darryl Burke

Joined: May 03, 2008
Posts: 5115

RowSorterListener.sorterChanged(RowSorterEvent e)

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: retrieving the event of JTable sorting
It's not a secret anymore!