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

The Create folder button produces error in the Details mode (JFileChooser)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b142
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp
    • Verification:
      Verified

      Description

      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 :
      JFileChooser creates message box with strange text when opens new folder. The bug occurs in the Details mode of JFileChooser.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the program that creates JFileChooser. Switch JFileChooser to the Details mode. Press the Create new folder button. Put mouse to the edit area and enter name of new folder (“test” for example). Then put mouse outside the edit area.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      JFileChooser should create new folder simply.


      ACTUAL -
      JFileChooser opens new folder and creates message box with the text like this: “Cannot rename New folder: A file with the name you specified already exists. Specify a different file name.”

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Cannot rename New folder: A file with the name you specified already exists. Specify a different file name.

      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 ----------

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: