Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFileChooser when used in slow network

 
Ivan Radulovic
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am wondering how to implement JFileChooser that would have notification (busy cursor) when operation of browsing folders take longer than usual because network is slow. I experimented a little with NetLimiter application which can slow down local network traffic. JFileChooser instance is set to point on shared folder on remote machine in LAN.

This is my implementation of file chooser:


But with this implementation i can only show busy cursor when dialog is triggered by showOpenDialog or showSaveDialog and only for the first time, when dialog is creating cache of its content. Any next showing of dialog is taking much less time in createDialog method, so busy cursor is being removed quickly. Beside this, there is no busy cursor for operations of changing directories or drives (for this i simply couldn't find suitable method to wrap safely with applyBusyCursor() and restoreDefaultCursor()).
I am using 1.6.0_14 version of java.

I would appreciate any suggestion on this.

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic