United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5033747 : JFileChooser is very slow on Windows XP

Details
Type:
Bug
Submit Date:
2004-04-19
Status:
Closed
Updated Date:
2005-09-12
Project Name:
JDK
Resolved Date:
2005-09-12
Component:
client-libs
OS:
windows_xp
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Duplicate
Affected Versions:
1.4.2_03
Fixed Versions:
6

Related Reports
Duplicate:
Relates:
Relates:

Sub Tasks

Description
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

                                    

Comments
EVALUATION

This is reproducible using JFileChooser in NetBeans, but not with FileChooserDemo. Investigating.
###@###.### 2004-04-26

This is likely a duplicate of 4480327, showing that the bug is not necessarily
network dependent.
###@###.### 2004-05-24
                                     
2004-04-26
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-10-02



Hardware and Software, Engineered to Work Together