-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b142
-
generic, x86
-
generic, windows_xp
-
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 :
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 ----------
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 ----------
- duplicates
-
JDK-6900662 JFileChooser shows an error message while renaming files
- Closed
-
JDK-7030776 Regression : Incorrect warning during New Folder creation in Detail view
- Closed