JDK-4893795 : Synth look and feel - Component text color seems incorrect
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-07-21
  • Updated: 2004-01-12
  • Resolved: 2003-09-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description
Attached to this bug report are file's Example1.java and Example1.xml  Example1.java loads the Synth Example1.xml formatted file and displays a button and a textfield.  When you run the example, the button and textfield is displayed, notice the text color is white.  Shouldn't the color be yellow or black as defined in the XML file?  The components are white whenever they do not have the focus.

###@###.### 2003-07-21

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b22 VERIFIED IN: tiger
14-06-2004

EVALUATION SynthTextFieldUI was setting the foreground by invoking getColor for the enabled state and TEXT_FOREGROUND on the SynthStyle. Problem with this is that getColor, for enabled, will pass straight through to the component so that you would never get the color specified in the style. Right thing to do is to invoke getColorForState which will NOT call into the component. ###@###.### 2003-09-12
12-09-2003