Yesterday I downloaded NetBeans IDE 5.5. I quickly noticed that was unusable. Not for Netbeans guilt, but for a problem with Swing and Windows XP. When I tried to open a file on netbeans, the ide got frozen. This made me crazy trying to find where the problem was…
The bug was not reproducible on my office pc that runs Windows 2000, and I started (again) thinking to retry a Linux migration.
It seems that the JFileChooser dialog has some conflict with the zipfolder feature: when instantiated it goes scanning files insize “zipfolders” on desktops or somewhere else.
If you notice this problem, just try this at command line prompt:
C:\\> regsvr32 /u %windir%\\system32\\zipfldr.dll
It worked for me. See bug #6372808.
I found this happening on jdk 1.5 and 1.6rc. Not good.
2 Responses to “JFileChooser Slowness Bug”
Leave a Reply
Search
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Nov | Jan » | |||||
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Archives
Categories
Tag Cloud
Android API Bash Bios CSS Development Eclipse Encription Error Handling Font Git Google GWT Hardware How-To HTML Installation iPod Java JavaScript Karmic Linux Lucks MacBook Open Source Opinion OSX Pitfalls Pkg Practices Python Resume Security Software Suspend TDD Testing Tools Top Down Tricks Ubuntu Uninstall Wakup On Lan Web Workaround
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Blog License
Blogs I like
Books on the desk
Friends' Blogs
- Antonio Terreno & Valter Bernardini
- Bruno Bossola
- Daniele Galluccio
- Domenico Ventura
- Ed Schepis
- Fabrizio Gianneschi
- Luca Grulla
- Luigi Zanderighi
- Marcello Teodori
- Mida Boghetich
- Muralidharan Chandrasekaran
- Piero Ricca
- Renzo Borgatti
- Simone Bordet
- Simone Bruno
- Uberto Barbini
- Valvolog
- Webtide blogs (Greg Wilkins & Jan Bartel)
Links





















still using winzoz? :P
bye luigi, have fun…
Good call.
/** Unregisters the zipfldr.dll fixes JDialog slowness
* issues. (Should be made optional)
*/
public static void applyFileChooserTweak() {
String osName = System.getProperty("os.name").toLowerCase();
if (!osName.contains("windows"))
return;
try {
System.out.print("Unregistering zipfldr.dll to speed up program "
"(don't worry, windows will reset this)...");
Runtime.getRuntime().exec("regsvr32 /s %windir%/system32/zipfldr.dll");
System.out.println("success");
}
catch (Exception e) {
System.out.println("failed");
}
}