wood burning stoves 2.0*
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: 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.

BLOG: http://leakfromjavaheap.blogspot.com
Darryl Burke

Joined: May 03, 2008
Posts: 4523

RowSorterListener.sorterChanged(RowSorterEvent e)

luck, db
There are no new questions, but there may be new answers.
wood burning stoves
subject: retrieving the event of JTable sorting
Similar Threads
Sorting JTable
[EJB3 JPA] Help with locking
jtable row
Auto resize column of jtable
Sort Jtable Column based on two conditions