JDK-4999718 : Add method to disable "create new folder" button in JFileChooser
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-02-23
  • Updated: 2004-02-23
  • Resolved: 2004-02-23
Related Reports
Duplicate :  
Description

Name: jl125535			Date: 02/23/2004


A DESCRIPTION OF THE REQUEST :
JFileChooser allows its create new folder button to be enabled, even when a developer simply wants to allow a user to open a file. Preventing the creation of folders in a read-mode is a common scenario. As such, the JFileChooser class should have a method which provides the ability to disable this button simply.

JUSTIFICATION :
As mentioned above, many developers would like a simple hook which would take care of this. Current workarounds are not intuitive.

Further justification can be found here:
 http://forum.java.sun.com/thread.jsp?forum=57&thread=196170


CUSTOMER SUBMITTED WORKAROUND :
Work arounds can be found in the following thread:

http://forum.java.sun.com/thread.jsp?forum=57&thread=196170
(Incident Review ID: 239991) 
======================================================================