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 table sorter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "table sorter" Watch "table sorter" New topic

table sorter

Moses Herrada

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
I agree. Here's the link:
subject: table sorter
It's not a secret anymore!