The IT Alchemy Lab really doesn't have any set "purpose" to speak of. It is more about the IT technologies and issues I come across in my day-to-day business, meetings and chats (lunches, coffee and drinks) with my IT colleagues and friends.

Blog Archive

Sunday, November 4, 2007

JTable Header Sorting with Mustang

With the release of JDK 1.6 (Mustang) there are a number of new features that are built into the JDK. I will help outline these items, for today, here is a working demo of the new JTable header sorting.

The new can be found on line 46 of com.gravitysoft.mustang.demo.JTableSortingDemoUI

jtResults.setRowSorter(new TableRowSorter(resultModel));

This is all you have to do to have your JTable header columns sortable, nothing more.

The Jar file is executable and can be found under the /dist folder.

You can download the files from Here

No comments:

About Me

My photo
Don't tell people how to do things, tell them what to do and let them surprise you with their results. --General George S. Patton
Open Source Links | Sourceforge | Slashdot | Open Source