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

JFileChooser - does not create a lock to the current open directory

XMLWordPrintable

      1) Using the SwingSet2 demo, open a plain JFileChooser.
      2) Click on the create a new folder button, which will create a "New Folder".
      3) Double click on the "New Folder", which will take you into that directory.
      4) Using the Windows Explorer, remove that directory.

      This is different from how other filechooser work in Windows. In apps such as NotePad, once you've created that "New Folder" and have clicked into it, you will not be able to remove that directory. The filechooser or app seems creates a lock on that directory, until you are no longer in that directory. Shouldn't JFileChooser behave in the same way?
      The JDK build that I used was 1.6.0 b59.

            Unassigned Unassigned
            sjchan Steven Chan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: