JDK-4290709 : JFileChooser Windows LAF is incomplete (missing shell folder display, etc)
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6,1.2.0,1.2.1,1.3.0,1.3.1,1.4.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,solaris_2.5.1,solaris_2.6,windows_95,windows_nt generic,solaris_2.5.1,solaris_2.6,windows_95,windows_nt
  • CPU: generic,x86,sparc
  • Submitted: 1999-11-12
  • Updated: 2000-12-03
  • Resolved: 2000-12-03
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.
1.4.0 betaFixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  

Name: lb39792			Date: 11/11/99

Although Swing's JFileChooser closely resembles the Windows common file 
dialog under the Windows look and feel, there are several deficiencies that 
customers complain about.  In particular, the Microsoft Windows aesthetics 
guide mentions the following: 

   "If you cannot use the [common] Open and Save As dialog boxes, you should 
   incorporate the following features into your open and save dialog boxes to 
   ensure that they are consistent with the shell, the Windows accessories, 
   and other applications: 

   + Support the same namespace hierarchy as the shell; that is, Desktop 
     should be at the root of the hierarchy, followed by all folders and 
     objects on the desktop, including My Computer, My Network, and so on. 

   + Support shortcuts (also known as shell links). [...] 

   + Display filenames with the corresponding icons and filename extensions 
     removed, as the shell does. 

   + Allow the user to browse the network hierarchy directly. 

   + Make sure that all of your dialog boxes (not just your open and save 
     dialog boxes) use only nonbold fonts.  [...]" 

The first four points are not possible in Swing without additional API support 
from the AWT.  The AWT common file dialog is also currently an unacceptable 
solution for the following reasons: 

+ It cannot be embedded into a frame or dialog like JFileChooser. 

+ Filename filter is not implemented and is difficult to implement on Windows. 
(see file dialog filtering proposal). 


CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin FIXED IN: merlin-beta INTEGRATED IN: merlin-beta

EVALUATION Committing to merlin. michael.martak@Eng 1999-12-21 A little clarification of the fix that will occur: this bug is presented as follows: fix either (a) awt FileDialog's file filtering, or (b) fix the swing JFileChooser to behave more like the native windows file chooser. We are electing to do (b). The new API resides in the new package sun.awt.shell and is integrated into merlin (see ShellFolder.java for details). Let me know if you find bugs in the implementation. michael.martak@Eng 2000-07-05 Implemented in merlin-beta. leif.samuelsson@Eng 2000-12-03