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

JFileChooser: Getting operation interrupted when doing a setCurrentDirectory()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.0.2
    • client-libs
    • None

      When using JFileChooser, I am running into a scenario in which when I do a
      setCurrentDirectory(), it will cause the BasicDirectoryModel$LoadFilesThread.run
      which will eventually call myFileSystemView.getFiles(), however, I am
      getting an interrupt exception while the LoadFilesThread is running.
      The jdb output is as follows:

      Basic L&F File Loading Thread[1] java.lang.InterruptedException: operation
      interrupted
              at com.sun.XFileBean.XFileSystemView.getFiles(XFileSystemView.java:52)
      at com.sun.java.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:262)

      When the interrupt operation occurs, it will do a getFiles on the "/" directory.

            jeff Jeff Dinkins
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: