Re: Applet.destroy()
Ike wrote:
If someone just closes a browser instance, which is running an Applet, is
public void destroy()
invoked in all cases (i.e. for all OS's, all broswers?) -Ike
As javadoc says:
"Called by the browser or applet viewer to inform this applet that it is
being reclaimed and that it should destroy any resources that it has
allocated. The stop method will always be called before destroy.
A subclass of Applet should override this method if it has any operation
that it wants to perform before it is destroyed. For example, an applet
with threads would use the init method to create the threads and the
destroy method to kill them.
The implementation of this method provided by the Applet class does
nothing. "
.
Relevant Pages
- Best strategy for Applets, Sockets, Frames, Destroy(), isConnected() and more . . .
... Let me start by stating the basic requirement: - In a browser environment, ... Java Applet - Initand Destroy ... Use the Initmethod to create the socket and connect to the server and the ... Destroy() method to close the socket. ... (comp.lang.java.programmer) - Applet termination question
... When the user closes the applet window, destroy() is called, which runs to ... the end of that method and then program execution terminates... ... (comp.lang.java.programmer) - Re: Please thiHelp
... How do i make a Calculator in J# ... > public void start{ ... > public void destroy(){ ... > called when applet is initialized after class loading, ... (microsoft.public.dotnet.vjsharp) - Re: reinitializing an applet
... The applet of geometry works when I open this HTML page. ... applet (destroy method) in the stop method but it doesn't work. ... As part of the construct of applet, the browser will automatically stop the applet went the user leaves the page and start it back up when the user returns. ... (comp.lang.java.programmer) - Re: IE does not call stop() on applet
... > init, start, stop and destroy part way through. ... > this to yourself by putting a debug dump line at the head and tail of ... console shows, that the applet recieves data from the server, and the ... (comp.lang.java.programmer) |
|