This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197342 - OutlineView sort icon is reversed
Summary: OutlineView sort icon is reversed
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 21:46 UTC by infinihertz
Modified: 2011-04-07 08:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description infinihertz 2011-04-01 21:46:00 UTC
I've seen this in both 6.9.1 and 7.0 RC1, but it looks like I can only select a single version as being affected, so I picked 7.0 arbitrarily.

It appears that when using an OutlineView (and maybe other NetBeans platform tabular-type views; I'm not sure), if you sort them and get the triangular sort icon in the table header, the triangle is the opposite orientation of what it should be.  So for example, if you sort ascending, the descending icon is shown, and vice-versa.

Based on our testing, there does not seem to be an easy workaround such as reversing a comparator, since the comparator used seems to be the natural comparator on objects returned by RowModel#getValue(); for us these are the objects returned by Property#getValue(). Since those objects are often native types (like String objects) we have no control over that.
Comment 1 Martin Entlicher 2011-04-04 15:01:39 UTC
I see. Thunderbird on Linux uses the same arrow orientation for sorting as we have. But it really seems to be an exception. Other applications use up arrow for ascending sort order and down arrow for descending.
I'll change the arrow orientation...
Comment 2 Martin Entlicher 2011-04-06 14:25:29 UTC
Fixed by changeset:   192061:dd3216909e00
http://hg.netbeans.org/main/rev/dd3216909e00
Comment 3 Quality Engineering 2011-04-07 08:47:34 UTC
Integrated into 'main-golden', will be available in build *201104070400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/dd3216909e00
User: mentlicher@netbeans.org
Log: #197342 The sort icons were drawn reversely.