United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4290709 JFileChooser Windows LAF is incomplete (missing shell folder display, etc)
JDK-4290709 : JFileChooser Windows LAF is incomplete (missing shell folder display, etc)

Details
Type:
Enhancement
Submit Date:
1999-11-12
Status:
Resolved
Updated Date:
2000-12-03
Project Name:
JDK
Resolved Date:
2000-12-03
Component:
client-libs
OS:
solaris_2.6,windows_nt,solaris_2.5.1,generic,windows_95
Sub-Component:
javax.swing
CPU:
x86,sparc,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.1.6,1.2.0,1.2.1,1.3.0,1.3.1,1.4.0
Fixed Versions:
1.4.0 (beta)

Related Reports
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

Description

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). 

======================================================================

                                    

Comments
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
                                     
2000-07-05
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin

FIXED IN:
merlin-beta

INTEGRATED IN:
merlin-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together