JDK-6724190 : BasicFileChooserUI uses ShellFolder
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2008-07-09
  • Updated: 2011-01-19
  • Resolved: 2010-06-15
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.0.6001]

A DESCRIPTION OF THE PROBLEM :
It is not possible to use own FileSystemView, because BasicFileChooserUI do not care about client property "FileChooser.useShellFolder" and following line:
ShellFolder shellFolder = ShellFolder.getShellFolder(dir);
in function changeDirectory(File dir) always leads to FileNotFoundException.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Open file chooser which uses own FileSystemView to handle remote files (files and directories can not be visible in Windows system).
2. Try to entrer any sub-directory.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect that when I double click on any sub-directory from my FileSystemView then file chooser enter to selected sub-directory.
ACTUAL -
"changeDirectory(File dir)" function cateches FileNotFoundException and quits. Form user site nothing happends. Entering sub-directories on own file system is not possible.

REPRODUCIBILITY :
This bug can be reproduced always.