Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser Performance  RSS feed

 
John Guris
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Day,
I'm currently learning java and I working with the JFileChooser. It's taking on average 45 seconds to open the chooser. I have other java applications at work and they all seem to crawl when it comes to bringing up file selection menues, otherwise performance is fine. Is this normal for JFileChooser? Are their any ways to speed up chooser?

Thanks

John

System:
Pentium IV 2.2 GHz XP SP2 1G mem Java 1.6

program:
QuizCardBuilder program from headFirst Java.
 
Nikos Pougounias
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Network drives usually cause such a delay...
 
Campbell Ritchie
Sheriff
Posts: 53732
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're running on Windows XP it's potentially this bug related to windows zip integration. I was having problems with JFileChooser locking up when attempting to browse file system roots because of this. Running the commands to remove zip integration (found in the bug report) stopped this. Additionally, rename the .dll referenced - windows will "re-register" zip integration if you register the ZIP extension - even if it's to another program like WinZip or 7Zip.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!