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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable and sorting" Watch "JTable and sorting" New topic
Author

JTable and sorting

Sarone Thach
Ranch Hand

Joined: Jun 25, 2003
Posts: 89
Hi,
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.
Thanks,
Sarone
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
 
Similar Threads
Sorting JTable in asc. or desc.?
Most effective JTable sorting
JTable
JTable
jtable