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

JFileChooser is very slow on Windows XP

XMLWordPrintable

      1.4.2_03-b02 on Windows XP

      A netbeans user encounters a problem very similar to bug 4712307 but also with folders which don't have too many files. See http://www.netbeans.org/issues/show_bug.cgi?id=42079 for information about the bug originally entered against netbeans.

      It takes tens of seconds to browse directories in file chooser. Thread dump at the moment of 100% CPU utilization for the many seconds shows:

      "AWT-EventQueue-1" prio=7 tid=0x03512dc8 nid=0xfd8 runnable [689e000..689fd8c]
         at sun.awt.shell.Win32ShellFolder2.getAttributes0(Native Method)
         at sun.awt.shell.Win32ShellFolder2.hasAttribute(Win32ShellFolder2.java:405)
         at sun.awt.shell.Win32ShellFolder2.isDirectory(Win32ShellFolder2.java:442)
         at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:193)
         at sun.awt.shell.ShellFolder.get(ShellFolder.java:245)
         at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.addItem(Windo

      wsFileChooserUI.java:1929)
         at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.access$2800(W

      indowsFileChooserUI.java:1898)
         at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.doDirectoryChanged(WindowsFileChoose

      rUI.java:1619)
         at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.access$3100(WindowsFileChooserUI.jav

      a:35)
         at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$15.propertyChange(WindowsFileChooser

      UI.java:1725)
         at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSuppor

      t.java:264)
         at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSuppor

      t.java:232)
         at javax.swing.JComponent.firePropertyChange(JComponent.java:3819)
         at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:541)
         at javax.swing.JFileChooser.<init>(JFileChooser.java:321)
         at javax.swing.JFileChooser.<init>(JFileChooser.java:273)
         at org.netbeans.beaninfo.editors.FileEditor.createHackedFileChooser(FileEditor.java:372)
         ...
      ###@###.### 2004-04-19
      ###@###.### 2004-04-20

            leifs Leif Samuelsson (Inactive)
            anebuzel Antonín Nebuželský
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: