Meaningless Drivel is fun!*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 804

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: 4522

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
Similar Threads
Auto resize column of jtable
Sorting JTable
jtable row
[EJB3 JPA] Help with locking
Sort Jtable Column based on two conditions