This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JFileChooser when used in slow network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFileChooser when used in slow network" Watch "JFileChooser when used in slow network" New topic
Author

JFileChooser when used in slow network

Ivan Radulovic
Greenhorn

Joined: Aug 26, 2009
Posts: 3
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.
 
wood burning stoves
 
subject: JFileChooser when used in slow network
 
Similar Threads
Can't set the Location of FileDialog
How to deal with a JFileChooser
JFileChooser modification
JFileChooser (Open File Dialog)
JDialog not closing on 1st click