wood burning stoves
The moose likes Swing / AWT / SWT and the fly likes JTable and 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 "JTable and sorting" Watch "JTable and sorting" New topic

JTable and sorting

Sarone Thach
Ranch Hand

Joined: Jun 25, 2003
Posts: 89
is it possible to do sorting with the JTable. I would like to click on a column header and have the data in the table sorted according some order that ie, numbered or alphanumeric.
There may be a few columns, any column may be clicked and sorted according to the order of that column- just like excell.
if you know what I'm talking about, and you have some ideas as to how i can accomplish this, please let me know.
Tim Troy
Ranch Hand

Joined: Apr 02, 2003
Posts: 51
Try this:
Java Tutorial
Swing By Example
I agree. Here's the link: http://aspose.com/file-tools
subject: JTable and sorting
jQuery in Action, 3rd edition