Just so it is clear, I am NOT trying to refresh the HTML page via Java.
I searched the group archives and found a ton of threads dealing with
that, so I realize that it a common question. But that is NOT what I'm
trying to do.
Instead, I am trying to figure out what happens to a java applet when
the HTML page it is embedded in gets refreshed. Does it go through
init() again? start()?
I have an applet that includes an array. When I refresh the page a few
times, I start getting an OutOfBounds exception. I'm certain that the
error must be related to the refresh action, as I cannot see any way
this exception could occur normally. Which means I can't really fix the
problem unless I know how refreshing the page affects the applet.
Granted, this is a higly unlikely set of events - why would someone
normally hit refresh over and over - but I'd like to fix the problem
anyway.
Oliver Wong - 25 Aug 2006 15:20 GMT
> Just so it is clear, I am NOT trying to refresh the HTML page via Java.
> I searched the group archives and found a ton of threads dealing with
[quoted text clipped - 14 lines]
> normally hit refresh over and over - but I'd like to fix the problem
> anyway.
See
http://java.sun.com/docs/books/tutorial/deployment/applet/lifeCycle.html
Ideally init() only gets called once, and start() is called multiple
times, but some browsers don't implement this correctly.
- Oliver
Redbeard - 25 Aug 2006 16:59 GMT
> > Just so it is clear, I am NOT trying to refresh the HTML page via Java.
> > I searched the group archives and found a ton of threads dealing with
[quoted text clipped - 22 lines]
>
> - Oliver
That is what I thought. I don't have any code outside of the init()
method that could explain the OutOfBounds exception. Maybe a kludge is
going to be necessary. :(