SortableTable sort probelm

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

SortableTable sort probelm

Postby jacky4631 » Wed Dec 21, 2011 2:19 am

I use the version jide.1.9.1.05.
There's a column in the table, the column type is String.
When i click the table column header,the column will displayed in certain sort.
If the column text is more than one character, the sort is right,but if the column text only have one character,as a, the sort will be wrong.
I debuged on my side many times, but haven't found any problmes may affect the column sort.
so I want to look for the jide.1.9.1.05 source code to verify, but i couldn't find the code.
can anyone send the code to me or explain the cause, thanks a lot.
jacky4631
 
Posts: 3
Joined: Wed Dec 21, 2011 1:59 am

Re: SortableTable sort probelm

Postby JIDE Support » Wed Dec 21, 2011 9:13 am

Can you please share with us a test case to investigate further?

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: SortableTable sort probelm

Postby jacky4631 » Wed Dec 21, 2011 6:22 pm

i have upload the test case, this is a jide demo, i only change the content of the table column "Task", please sort this column and verify,tks.
Attachments
AbstractDemo.java
(9.27 KiB) Downloaded 1810 times
TableScrollPaneDemo.java
(9.2 KiB) Downloaded 1822 times
Demo.java
(1.47 KiB) Downloaded 1842 times
jacky4631
 
Posts: 3
Joined: Wed Dec 21, 2011 1:59 am

Re: SortableTable sort probelm

Postby JIDE Support » Wed Dec 21, 2011 7:02 pm

Thanks for your test case. I could reproduce the issue in 1.9.1.05. Looks like in that release, the comparing is case sensitive. I would recommend you upgrade to the latest release to fix the issue. If you are not able to do so, please try to register a Comparator for String.class and invoke SortableTableModel#setColumnComparatorContextProvider() to let the column return the ComparatorContext.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: SortableTable sort probelm

Postby jacky4631 » Wed Dec 21, 2011 7:04 pm

I'm sorry , i think this demo is right. let me upload own code,but it is difficult to separate from the project,maybe will take a few times.
jacky4631
 
Posts: 3
Joined: Wed Dec 21, 2011 1:59 am


Return to Product Suggestions

Who is online

Users browsing this forum: Google [Bot] and 11 guests