Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6640344
Votes 0
Synopsis Nimbus L&F: JTree expand/collapse triangles are wrong color for selected cell
Category java:classes_swing
Reported Against
Release Fixed 6u10(b10)
State 10-Fix Delivered, Verified, bug
Priority: 3-Medium
Related Bugs 6595267 , 6635263
Submit Date 11-DEC-2007
Description
FULL PRODUCT VERSION :
JRE6 early access (jre6u10b08)

ADDITIONAL OS VERSION INFORMATION :
Windows XP SP2

A DESCRIPTION OF THE PROBLEM :
According to the Nimbus spec, when a JTree cell is selected, the little triangle used to expand/collapse parents should be drawn in white instead of the normal gray color. Instead, it's always drawn in the same gray color regardless of selection state, which is not easy to see against the blue background of the selection.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Use Nimbus.
2. Create a JTree with anything in it.
3. Select a parent node.
4. Bear witness that the little gray triangle on the left hand side, used to expand/collapse the parent, is not being shown as white.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected a white triangle, per the Nimbus spec for trees.
ACTUAL -
Got the same gray triangle that's used for non-selected tree parents.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
No workaround available as far as I know.
Posted Date : 2007-12-11 17:21:01.0
Work Around
N/A
Evaluation
It turns out to be a bug in SynthTreeUI. SynthTreeUI is passing via the SynthContext the state of the tree, as opposed to the state of the row. So since the tree is Enabled but not Selected, the row is never "Selected" and thus the white triangle icon is never used.
Posted Date : 2007-12-18 22:10:02.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang