-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 1.4.1_03, 6
-
b78
-
x86
-
windows_2000, windows_xp
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".
======================================================================
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".
======================================================================
- duplicates
-
JDK-6356325 PIT:Foreground is not affecting to the components once change the window appearance in classic theme
- Closed
- relates to
-
JDK-4710684 "High Contrast Black" Windows LaF inconsistencies
- Open