• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

problem with Filechooser

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic