Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4863860

Windows LAF label foreground color is wrong

XMLWordPrintable

    • 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".

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

            jmarinacsunw Joshua Marinacci (Inactive)
            dkorbel David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: