JDK-4493369 : WindowsFileChooserUI should not call ShellFolder
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-08-17
  • Updated: 2001-08-24
  • Resolved: 2001-08-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 beta3Fixed
Related Reports
Relates :  
Description

Name: boT120536			Date: 08/17/2001


"1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)


In Swing 1.1, Java 1.2 and Java 1.3 the JFileChooser class could be used to
pick files from user defined file systems. In particular I, along with many
others judging from your bug parade and Discussion Forum, have used it to
display file names from a file system on a different machine, connected via
RMI. Because WindowsFileChooserUI calls ShellFolder directly, rather than going
through the user supplied FileSystemView, it is no longer possible to use
JFileChooser in this way.
I have not supplied a working example program because it would require both a
server and a client application, and the one I have has 310 modules in it.
Anyway, in view of the changes in FileSystemView in 1.4 and the comments in the
documentation (from jeff), I would like some statement as to whether this is a
bug or should I in future write my own file chooser.
(Review ID: 130205) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta3 FIXED IN: merlin-beta3 INTEGRATED IN: merlin-beta3
14-06-2004

WORK AROUND Name: boT120536 Date: 08/17/2001 Write your own file chooser. ======================================================================
11-06-2004

EVALUATION The WindowsFileChooserUI and MetalFileChooserUI classes now only call the ShellFolder class if FileSystemView.getRoots() returns the Desktop folder on Windows. ###@###.### 2001-08-21
21-08-2001