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

JFileChooser details view uses wrong (possibly unreadable) text color

XMLWordPrintable

    • b62
    • x86
    • windows_xp

      Name: rmT116609 Date: 01/29/2003


      FULL PRODUCT VERSION :
      java version "1.4.1_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
      Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The JFileChooser details view seems to always use black for the text color. This can cause the text to be unreadable.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. In Windows XP advanced display properties, set "Window Text" to red on black.
      2. Compile and run source code.
      3. Switch to details view.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expect the details view text to be red, but it is black.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

          public class JFileChooserBug5 {
             public static void main(String args[]) {
               try {
                  UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); }
                   catch(Exception e) {}
               JFileChooser fc = new JFileChooser();
               fc.showOpenDialog(null);
            }
         }

      ---------- END SOURCE ----------
      (Review ID: 180534)
      ======================================================================

            leifs Leif Samuelsson (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: