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

Win L&F: JFileChooser has wrong icon on selected line in "Select in" combobox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs



      Name: gm110360 Date: 11/12/2003


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

      FULL OS VERSION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      JFileChooser inproperly paints icon for selected line in "select in" combobox under Windows XP LookAndFeel. The problem is that native file chooser paints darker icon for selected line. Swing JFileChooser paints the same icons for selected and non selected lines.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Run FileChooserDemo bundled into JDK1.4.2 distribution
      2. Switch to Windows XP LookAndFeel
      3. Open "Select in" combobox and select some line which has an icon

      Essentially while selecting any file/folder in the list when you click on any native windows file chooser dialog the icon color also changes(little grayed) along with the text but the swing file chooser has the same colors for selected and non-selected folders.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      icon should be painted in darker colors
      ACTUAL -
      icon for selected line is the same as an icon for non selected line

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 200764)
      ======================================================================

            leifs Leif Samuelsson (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: