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

Focus does not get painted in JFileChooser when using Detailed view

    Details

      Description

      SYNOPSIS
      --------
      Focus does not get painted in JFileChooser when using Detailed view

      OPERATING SYSTEM
      ----------------
      Windows XP

      FULL JDK VERSION
      ----------------
      JDK 7 (tested with b147)
      Java 6 (tested with 6u26)
      5.0 (tested with 5.0u30)
      Not reproducible with 1.4.2 (tested with 1.4.2_32)

      REPRODUCTION INSTRUCTIONS
      -------------------------
      1. Run the SwingSet2 demo:
           java -jar <%JAVA_HOME%>/demo/jfc/SwingSet2/SwingSet2.jar
      2. Click the JFileChooser icon and select any of the three JFileChooser
         options to open a JFileChooser.
      3. Click the "Details" icon at the top right of the JFileChooser to see
         files/folders in detailed view.
      4. Use the TAB key to move focus through the application.

      Observed behaviour:
      When the detailed file list view gets the focus, the focus does not get painted on the list. A focus indicator appears when the UP/DOWN keys are pressed.

      Expected behaviour:
      The focus, which is on the the first item in the file/folder list view, should be painted when TAB'ing to the file/folder view. This behaviour is observed for the normal, non-detailed file/folder view.

      Note from Licensee:
      Oracle Bug 6982635 was raised for a similar issue. However, there are some key differences. Bug 6982635 talks about the generic behaviour of focus indicators in JLists. However, the JFileChooser's detailed view is not a JList conponent - it's a JTable component. Also, this issue is not generic to JTable component, it is specific to the JFileChooser's Detailed View implementation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                trebari Tejpal Rebari
                Reporter:
                dkorbel David Korbel (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: