This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with Filechooser  RSS feed

 
Rani Vish
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends ,

while using JFileChooer i have faced some difficulties ,actually it is very slow, it takes two or more minutes to open the JFileChooser Dialog
this is really very annoying ,Please Suggest what i have to do to open a new file ,instead of JFileChooser

Code is as follows...


[I][/I]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This probably has nothing to do with your problem, but the first "fc.showOpenDialog(this);" seems to be unnecessary, and may even be harmful.
 
Mateus Lucio
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ... try this on your pc, here its runs immediatly, i've never heard of anything like "JFileChooser taking 2 minutes to run" before, maybe its something else, something wrong with the pc maybe ... please try this and let us know, and you can always use scanner or input streams to read from a file, if you dont need the GUI

 
Rani Vish
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the Reply

But the given code also took 1.57 min to open the File chooser dialog

i searched this on net also ,Please refer the page

http://bugs.sun.com/bugdatabase/view_bug.do;:WuuT?bug_id=5033747

i am using Win XP and Eclipse 3.1 ,i do not understand how i fix it
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!