Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > JFileChooser hangs after second call
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 18th April 03:14
hansi
External User
 
Posts: 1
Default JFileChooser hangs after second call



Hi there.

I am very frustrated, cause an applet, i developed 2 years ago, now does
not work anymore.

I tried to find the reason and found this:

Older versions of Browsers and SUN-VM work, newest version does not.

The problem occurs, when a JFileChooser ist created the second time:

JFileChooser jfc= New JFileChooser();

This line of code is in a function, and when the function is called the
second time, the application hangs and does not execute the lines of
code under this line.

The hang causes the browser to hang too.
This effekt is in IE7 und Firefox 2.

Any idea, what I could do to fix this?

Please help, Regards, Hans
  Reply With Quote


  sponsored links


2 18th April 03:14
paul hamaker
External User
 
Posts: 1
Default JFileChooser hangs after second call



I assume it's in a signed jar and all, since it works a first time.
See what happens if you let the instance live and just call its
showOpenDialog again, so don't create a new instance.
--
http://javalessons.com Paul Hamaker, SEMM
Teaching ICT since 1987
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666