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

Unable to view focus on "Up one level", "create new folder" etc. of JFileChooser Dialog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0, 6u2, 6u10, 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b72
    • CPU:
      generic, x86, sparc
    • OS:
      solaris_2.5.1, windows, windows_xp

      Description

      PROBLEM DESCRIPTION

      Unable to view focus for the following JFileChooser options on windows XP in "windows Classic" theme only:

      a) Up One Level
      b) Create New Folder
      c) List
      d) Details

      TESTCASE DESCRIPTION

      Please change the default theme of windows XP to "Windows Classic" to reproduce the problem.

      STEPS TO REPRODUCE

      1. Install the above mentioned IBM JDK6 build.Set PATH to java.

      2. Change the windows theme to "windows classic". By default Win XP has "Windows XP" theme shown, which can be changed through desktop properties.

      3. Run the test case

      4. Click on button to show FileChooser Dialog

      5. Do "ALT+I" in order to select "Look in".

      6. Select "C:\" using keyboard in "Look in" option.

      7. Use "TAB" to go to next object in the file chooser dialog i.e "Up One Level" icon.

      Observed result:
      Focus is not visible.
      Expected result:
      Focus should be visible.




      import javax.swing.*;
      import java.awt.event.*;

      class JFileChooserTest extends JFrame implements ActionListener{
      JFileChooserTest(){
      JPanel p = new JPanel();
      JButton jbutFileChooser = new JButton("File Chooser");
      jbutFileChooser.addActionListener(this);
      try {
              UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
      }catch(Exception e) { }
      p.add(jbutFileChooser);
      this.getContentPane().add(p);
      this.setVisible(true);
      this.setSize(200,200);
      this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      }
      public void actionPerformed(ActionEvent ae){
      try{
      JFileChooser fileChooser = new JFileChooser();
      int retValue = fileChooser.showOpenDialog(this);
      }catch (Exception e){
      e.printStackTrace();
      }
      }
      public static void main(String[] args){
      JFileChooserTest j = new JFileChooserTest();
      }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rupashka Pavel Porvatov (Inactive)
              Reporter:
              elarsen Erik Larsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: