• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFileChooser it loads slowly

 
Roldan Baldo
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
probably would be best for you to prove it, with a compilable/runnable program
 
Roldan Baldo
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 20559
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you perhaps have a network mapping that is no longer working?
 
Rohit Kedia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you give a code snippet?
 
Paul Clapham
Sheriff
Posts: 21155
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic