Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4999718

Add method to disable "create new folder" button in JFileChooser

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs



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

            leifs Leif Samuelsson (Inactive)
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: