-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.2
-
x86
-
windows_2000
Name: gm110360 Date: 09/12/2003
FULL PRODUCT VERSION :
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
FULL OS VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
When the user opens a Windows shortcut to a folder in a JFileChooser, the JFileChooser treats the shortcut as a file, instead of navigating into the target folder of the shortcut.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create a Windows shortcut to your My Documents folder. Move the shortcut to your C: drive root directory, C:\.
2. Compile and run the FileChooserDemo program from the Swing tutorial.(See http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/FileChooserDemo.java.)
3. In the FileChooserDemo dialog, click on the Open a File button.
4. Navigate to your C: drive. Attempt to open the "My Documents" shortcut in the C:\ folder (not the original "My Documents" folder itself). Instead of the File Chooser following the shortcut to the original "My Documents" folder and displaying its contents, the dialog dismisses and the application displays the following message: Opening: My Documents.lnk.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The JFileChooser should determine the folder that the shortcut points to and display the contents of that folder, as this is the behavior of the native Windows Open dialog (such as in Microsoft Word).
ACTUAL -
The JFileChooser treats the shortcut as a regular file instead of as a folder.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
See http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/FileChooserDemo.java.
---------- END SOURCE ----------
(Incident Review ID: 207043)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
FULL OS VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
When the user opens a Windows shortcut to a folder in a JFileChooser, the JFileChooser treats the shortcut as a file, instead of navigating into the target folder of the shortcut.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create a Windows shortcut to your My Documents folder. Move the shortcut to your C: drive root directory, C:\.
2. Compile and run the FileChooserDemo program from the Swing tutorial.(See http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/FileChooserDemo.java.)
3. In the FileChooserDemo dialog, click on the Open a File button.
4. Navigate to your C: drive. Attempt to open the "My Documents" shortcut in the C:\ folder (not the original "My Documents" folder itself). Instead of the File Chooser following the shortcut to the original "My Documents" folder and displaying its contents, the dialog dismisses and the application displays the following message: Opening: My Documents.lnk.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The JFileChooser should determine the folder that the shortcut points to and display the contents of that folder, as this is the behavior of the native Windows Open dialog (such as in Microsoft Word).
ACTUAL -
The JFileChooser treats the shortcut as a regular file instead of as a folder.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
See http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/FileChooserDemo.java.
---------- END SOURCE ----------
(Incident Review ID: 207043)
======================================================================
- duplicates
-
JDK-4356160 JFileChooser doesn't support shortcuts (.lnk files)
- Resolved