United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6493523 JFileChooser: Problems with "My Documents" folder
6493523 : JFileChooser: Problems with "My Documents" folder

Details
Type:
Bug
Submit Date:
2006-11-14
Status:
Closed
Updated Date:
2011-03-09
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
windows_xp
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6,6u2
Fixed Versions:
7

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
On XP:

- Launch JFileChooser with Windows L&F
- In the dropdown, select C:
- In the file list, double click "Documents and Settings"
- In the file list, double click your username

Problem 1) Notice that the "My Documents" folder has a distinguishable icon (different than a regular folder). With the native JFileChooser, it doesn't in this view.

- Double click "My Documents"

Problem 2) Look in the dropdown. It shows the wrong location for "My Documents". It should show that you're in "C:\Documents and Settings\<user>\My Documents". Instead, it shows's that you're in "My Documents", the child of the desktop.

On Vista:

Similar problems appear on Vista with the "user" folder, and the "My Documents" folder. Care needs to be taken to correctly handle these folders on Vista.

                                    

Comments
EVALUATION

Method "equals" in Win32ShellFolder2 is improved: now the same folder with different paths are not equal, but before was. E.g. "Desktop\My Documents" and "C:\Documents and Settings\<user>\My Documents" are not equal after fix.
                                     
2007-04-18
EVALUATION

Special folders handling in ShellFolder2.cpp should be refined.
                                     
2006-11-20



Hardware and Software, Engineered to Work Together