aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JFileChooser it loads slowly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFileChooser it loads slowly" Watch "JFileChooser it loads slowly" New topic
Author

JFileChooser it loads slowly

Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
why is it that JFileChooser will load slowly i have the latest JDK/JRE i think. and no thumbnails in the JFileChooser

any help would be appreciated.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
probably would be best for you to prove it, with a compilable/runnable program
Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99

this is the code, theres no thumbnails, unlike windows that you can choose if you want it to be thumbnail,
list or detail.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19538
    
  16

Do you perhaps have a network mapping that is no longer working?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Rohit Kedia
Ranch Hand

Joined: Apr 24, 2010
Posts: 79
Hi There , are you talking about uploading Files.
Then when using the JFileChooser to uploading the Files, at the time when using the Chooser just only take the absolute path, then at the time of loading read the file from the Path; read the file part by part or it can have Heap size Issue (for Large files)
Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
yes, i am going to get the picture from the disk then load it in my variable/field in my program and use it.

i dont get this straight
"at the time when using the Chooser just only take the absolute path, then at the time of loading read the file from the Path"

because when i load the JFileChooser it direct the path to the "my documents"
Rohit Kedia
Ranch Hand

Joined: Apr 24, 2010
Posts: 79
When you are using the JFIleChooser to select the File Just take a File Reference(which you are doing) and take the Absolute Path.
Then say suppose you want to load it in any Database(say) at that time you can read the File Contents part by part.
Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
can you give a code snippet?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18110
    
    8

On my machine a JFileChooser sometimes loads slowly. Also Windows Explorer sometimes loads slowly. I wouldn't expect Java's code to be better than Windows's code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFileChooser it loads slowly
 
Similar Threads
how to write coding for browse button in java swing?
File browser crash course
Why does this get a run-time error?
Is there any Browse button control in Swing ??
Simple file browser !!!!!!