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

The goto parent directory button doesn’t operate in JFileChooser

XMLWordPrintable

    • b01
    • x86
    • windows_xp, windows_7
    • Verified

        FULL PRODUCT VERSION :
        java version "1.7.0-ea"
        Java(TM) SE Runtime Environment (build 1.7.0-ea-b125)
        Java HotSpot(TM) Client VM (build 20.0-b06, mixed mode, sharing)


        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        The goto parent directory button doesn’t operate if the File name control has focus (in JFileChooser). This problem does not exist in JDK 6.0_20.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run the test that opens JFileChooser dialog and try to press the button.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        JFileChooser should show files in the parent directory.
        ACTUAL -
        Nothing happens.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        package tests.tests4;

        import javax.swing.JFileChooser;

        import javax.swing.UIManager;
        import javax.swing.UnsupportedLookAndFeelException;

        public class choose2 {
        public static void main(String[] args) {
        try {
        // Set Windows Look&Feel
        UIManager.setLookAndFeel(
        UIManager.getSystemLookAndFeelClassName());
        } catch (UnsupportedLookAndFeelException e) {
        } catch (ClassNotFoundException e) {
        } catch (InstantiationException e) {
        } catch (IllegalAccessException e) {
        };
        JFileChooser chooser1= new JFileChooser();
        chooser1.showSaveDialog(null);
        }
        }

        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        I don't know.

              rupashka Pavel Porvatov (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: