Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieving the event of JTable sorting

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RowSorterListener.sorterChanged(RowSorterEvent e)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic