This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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
subject: JTable and sorting
Similar Threads
Most effective JTable sorting
Sorting JTable in asc. or desc.?