This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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..
It is sorta covered in the JavaRanch Style Guide.
subject: Applet "hangs" after hitting Reload
It's not a secret anymore!