JDK-4863860 : Windows LAF label foreground color is wrong
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0,1.4.1_03,6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2003-05-14
  • Updated: 2006-03-30
  • Resolved: 2006-03-30
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.
JDK 6
6 b78Fixed
Related Reports
Duplicate :  
Relates :  
Description
Name: dk106046			Date: 05/14/2003

Steps to reproduce:
-Run FileChooserDemo.
              java -jar FileChooserDemo.jar
-Select the Windows LAF the show the "Open" filechooser. The "Look in:", 
 "File name:" and "Files of type:" text is all wrapped in JLabels.
-Show the Windows "Open" filechooser, ie, in Windows Notepad select "Open" 
 from the "File" menu.Windows" dialog and leave open. 
-The message text (or JLabel's text)  and button text colours are black in 
 both filechoosers. So far so good.
-Now from your Windows Display Properties Appearance panel select 
 High Contrast #1 as your new colour sheme and apply. Note: the example 
 display in this panel show the colours you should expect to see used, 
 the Message Text should be yellow, the button text should be white.
-Check that the Windows filechooser's message text and button text colours 
 match this scheme, then check that the Windows LAF JFileChooser's JLabel text 
 and button text match this scheme.

Result:
-In the Windows filechooser the "Look in:", "File name:", etc messages' text  is 
all in yellow, the "Open" and "Cancel" buttons' text is white. This is as you would 
expect. But the "Look in:", "File name:", etc JLabels' text in the Windows LAF 
JFileChooser's is white, matching the button text. This is wrong. The JLabels' text 
should be yellow.

In WindowsLookAndFeel.java "Label.foreground" is using ControlTextColor when
it should be using WindowTextColor. I think the same is true for  "OptionPane.messageForeground".

======================================================================

Comments
EVALUATION It appears that titled borders, check boxes, and radio buttons have this problem as well. They should all be yellow when using the high contrast theme and they are white instead.
27-02-2006

EVALUATION added screenshot attachments
23-02-2006

EVALUATION Reproducible as described in 1.4, 1.4.1, 1.4.2. ###@###.### 2003-05-16
16-05-2003