*
The moose likes Swing / AWT / SWT and the fly likes table sorter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "table sorter" Watch "table sorter" New topic
Author

table sorter

Moses Herrada
Greenhorn

Joined: Jan 22, 2005
Posts: 11
Hi guys i have a table and i have a table model that extends DefaultTableModel. I used the table sorter codes that is provided by sun to implement my table sorter. When i click on the column name of the table, it can only sort once...but i want the table to be able to sort as long as the user clicks on the columns

could it be that the table sorter implemented by sun extends AbstractTableModel while my table model extends DefaultTableModel?
some1 pls enlighten me thx
Anand Karia
Ranch Hand

Joined: Sep 25, 2004
Posts: 156

Hope this would help you out. This is also sun example.







Love is GOD and GOD is Love.
Anand Karia
IT Concretor.......
M/s. Anand Karia Concreting IT
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: table sorter
 
Similar Threads
get changed values from JTable
JTable will not clear
TableRowSorter slow?
Removing rows from DefaultTableModel
Problem with JTable and ToolTips