File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet "hangs" after hitting Reload" Watch "Applet "hangs" after hitting Reload" New topic

Applet "hangs" after hitting Reload

Indrek Sünter

Joined: Mar 27, 2009
Posts: 2
For some reason after hitting the Reload button in the browser, the whole applet window becomes gray and non-responsive.
However, restarting works - the applet is successfully loaded and run when I re-enter the URL.

The same goes with Eclipse Applet Viewer - the window closes without any errors when I click Reload.
Restart seems to work just fine.

I was even able to reproduce this with an empty applet:

The actual code can be checked out from here:

I'm using:

Eclipse 3.2.2
Firefox 3.0.7

All suggestions are welcome,
Thank You
Indrek Sünter

Joined: Mar 27, 2009
Posts: 2

I just found out that it works in Windows Vista at least..

Tested it with IE, Firefox and Opera.

Opera is a bit slow with the applet, but it works.

IE and Firefox are able to handle the Reload correctly.

However, the Eclipse Applet Viewer still crashes (just disappears and leaves all the threads running).

Weird that it didn't work that well in linux. I hope that clients won't have problems with this..
I agree. Here's the link:
subject: Applet "hangs" after hitting Reload
It's not a secret anymore!