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 Sorting JTable Rows 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 "Sorting JTable Rows" Watch "Sorting JTable Rows" New topic

Sorting JTable Rows

Jerry Simmers

Joined: Mar 17, 2004
Posts: 5
I want to sort my JTable rows in ascending order based on clicking on a particular column header. Is there a simple method to call to do this, or do I need to write my own sort routine? Your assistance is greatly appreciated!
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

The demo samples shipped with JDK 1.4 contains table sorting examples and classes required for that. It is fairly straighforward to use them in your code. Have a look at them.
- Manish
subject: Sorting JTable Rows
Similar Threads
Sorting the JTable