One more strange bug
I’ve noticed that all Java applications on my machine are slowing down a lot. But, when I my brand-new and self-made budget application freezes while doing a “new JFileChooser()”, this really pi**es me off. Asking Google, I found another weird bug: when your Windows Desktop has a lot of ZIP files, Java will implicity use Windows “zip folder” feature.
You can also blame Microsoft, because Win32ShellFolder.isDirectory() returns “true” (in W32API terms) when checking zip files. Don’t you love proprietary API?
Workarounds:
- Clean your Desktop
- If you are as lazy as me, you can disable “zip folder” with:
regsvr32 /u %windir%\system32\zipfldr.dll
Tags: bug, filechooser, folder, w32api, zip
March 19th, 2010 at 6:53 pm
[…] GPixPod 0.3.2! I have … requested image preview in the filechooser when adding photos (now it …Extreme Java Blog Archive One more strange bugTags: bug, filechooser, folder, w32api, zip. This entry was posted on Friday, November 28th, 2008 […]