Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sorting blank column in jTable

843785Jul 17 2008 — edited Jan 11 2009
Hi all,

I am having problem sorting blank columns.
I have already read thru [http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#sorting]

Using setAutoCreateRowSorter works except when sorting blank column as i want all blank column to be sorted to the bottom be it ascending or descending order.
I am using Comparator to do the sorting but how do I know when it is doing ascending or descending?

Edited by: zwseo on Jul 17, 2008 7:25 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2009
Added on Jul 17 2008
16 comments
552 views