|
|
I would be grateful for any advice offered on the following. I am just learning Java and currently writing a small applet (actually I'm copying the applet from a text book). This applet is intended to help the reader understand the life cycle of the applet and the various methods that comprise all applets (e.g. init(), start(), stop(), destroy()).
The applet works by placing counters in each of these methods, which increment each time the respective method is called. The value of the counter is displayed in the browser window.
My understanding is that each time the browser is minimized, the stop() method should be called and its counter incremented. What I'm finding is that the applet works as intended when run from the NetBeans IDE applet viewer, but the stop() method does not seem to get called when the applet is run on the current versions of IE, Chrome or Firefox.
I have searched the web but it appears as though nobody else experiences this problem.
Many thanks for your consideration,
Wayne