<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.applet.Applet
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.applet.html">This Package</a>  <a href="Package-java.applet.html">Previous</a>  <a href="Package-java.applet.html">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.applet.Applet
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
           |
           +----<a href="java.awt.Container.html#_top_">java.awt.Container</a>
                   |
                   +----<a href="java.awt.Panel.html#_top_">java.awt.Panel</a>
                           |
                           +----java.applet.Applet
</pre>
<hr>
<dl>
  <dt> public class <b>Applet</b>
  <dt> extends <a href="java.awt.Panel.html#_top_">Panel</a>
</dl>
An applet is a small program that is intended not to be run on 
 its own, but rather to be embedded inside another application. 
 <p>
 The <code>Applet</code> class must be the superclass of any 
 applet that is to be embedded in a Web page or viewed by the Java 
 Applet Viewer. The <code>Applet</code> class provides a standard 
 interface between applets and their environment.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Applet()"><b>Applet</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#destroy()"><b>destroy</b></a>()
  <dd>  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.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getAppletContext()"><b>getAppletContext</b></a>()
  <dd>  Determines this applet's context, which allows the applet to 
 query and affect the environment in which it runs.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getAppletInfo()"><b>getAppletInfo</b></a>()
  <dd>  Returns information about this applet.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getAudioClip(java.net.URL)"><b>getAudioClip</b></a>(URL)
  <dd>  Returns the <code>AudioClip</code> object specified by the 
 <code>URL</code> argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getAudioClip(java.net.URL, java.lang.String)"><b>getAudioClip</b></a>(URL, String)
  <dd>  Returns the <code>AudioClip</code> object specified by the 
 <code>URL</code> and <code>name</code> arguments.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCodeBase()"><b>getCodeBase</b></a>()
  <dd>  Gets the base URL.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDocumentBase()"><b>getDocumentBase</b></a>()
  <dd>  Gets the document URL.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getImage(java.net.URL)"><b>getImage</b></a>(URL)
  <dd>  Returns an <code>Image</code> object that can then be painted on 
 the screen.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getImage(java.net.URL, java.lang.String)"><b>getImage</b></a>(URL, String)
  <dd>  Returns an <code>Image</code> object that can then be painted on 
 the screen.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLocale()"><b>getLocale</b></a>()
  <dd> 
 Gets the Locale for the applet, if it has been set.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getParameter(java.lang.String)"><b>getParameter</b></a>(String)
  <dd>  Returns the value of the named parameter in the HTML tag.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getParameterInfo()"><b>getParameterInfo</b></a>()
  <dd>  Returns information about the parameters than are understood by 
 this applet.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#init()"><b>init</b></a>()
  <dd>  Called by the browser or applet viewer to inform 
 this applet that it has been loaded into the system.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isActive()"><b>isActive</b></a>()
  <dd>  Determines if this applet is active.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#play(java.net.URL)"><b>play</b></a>(URL)
  <dd>  Plays the audio clip at the specified absolute URL.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#play(java.net.URL, java.lang.String)"><b>play</b></a>(URL, String)
  <dd>  Plays the audio clip given the URL and a specifier that is 
 relative to it.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#resize(java.awt.Dimension)"><b>resize</b></a>(Dimension)
  <dd>  Requests that this applet be resized.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#resize(int, int)"><b>resize</b></a>(int, int)
  <dd>  Requests that this applet be resized.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setStub(java.applet.AppletStub)"><b>setStub</b></a>(AppletStub)
  <dd>  Sets this applet's stub.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#showStatus(java.lang.String)"><b>showStatus</b></a>(String)
  <dd>  Requests that the argument string be displayed in the 
 "status window".
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#start()"><b>start</b></a>()
  <dd>  Called by the browser or applet viewer to inform 
 this applet that it should start its execution.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#stop()"><b>stop</b></a>()
  <dd>  Called by the browser or applet viewer to inform 
 this applet that it should stop its execution.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Applet"></a>
<a name="Applet()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Applet</b>
<pre>
 public Applet()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="setStub(java.applet.AppletStub)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setStub"><b>setStub</b></a>
<pre>
 public final void setStub(<a href="java.applet.AppletStub.html#_top_">AppletStub</a> stub)
</pre>
<dl>
  <dd> Sets this applet's stub. This is done automatically by the system.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> stub - the new stub.
  </dl></dd>
</dl>
<a name="isActive()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isActive"><b>isActive</b></a>
<pre>
 public boolean isActive()
</pre>
<dl>
  <dd> Determines if this applet is active. An applet is marked active 
 just before its <code>start</code> method is called. It becomes 
 inactive immediately after its <code>stop</code> method is called.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the applet is active;
          <code>false</code> otherwise.
    <dt> <b>See Also:</b>
    <dd> <a href="#start()">start</a>, <a href="#stop()">stop</a>
  </dl></dd>
</dl>
<a name="getDocumentBase()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDocumentBase"><b>getDocumentBase</b></a>
<pre>
 public <a href="java.net.URL.html#_top_">URL</a> getDocumentBase()
</pre>
<dl>
  <dd> Gets the document URL. This is the URL of the document in which
 the applet is embedded.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <a href="java.net.URL.html#_top_"><code>URL</code></a> of
          the document that contains this applet.
    <dt> <b>See Also:</b>
    <dd> <a href="#getCodeBase()">getCodeBase</a>
  </dl></dd>
</dl>
<a name="getCodeBase()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCodeBase"><b>getCodeBase</b></a>
<pre>
 public <a href="java.net.URL.html#_top_">URL</a> getCodeBase()
</pre>
<dl>
  <dd> Gets the base URL. This is the URL of the applet itself.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <a href="java.net.URL.html#_top_"><code>URL</code></a> of
          this applet.
    <dt> <b>See Also:</b>
    <dd> <a href="#getDocumentBase()">getDocumentBase</a>
  </dl></dd>
</dl>
<a name="getParameter(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getParameter"><b>getParameter</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getParameter(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Returns the value of the named parameter in the HTML tag. For 
 example, if this applet is specified as
 <ul><code>
	&lt;applet code="Clock" width=50 height=50&gt;<br>
  &lt;param name=Color value="blue"&gt;<br>
  &lt;/applet&gt;
 </code></ul>
 <p>
 then a call to <code>getParameter("Color")</code> returns the 
 value <code>"blue"</code>. 
 <p>
 The <code>name</code> argument is case insensitive.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - a parameter name.
    <dt> <b>Returns:</b>
    <dd> the value of the named parameter.
  </dl></dd>
</dl>
<a name="getAppletContext()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getAppletContext"><b>getAppletContext</b></a>
<pre>
 public <a href="java.applet.AppletContext.html#_top_">AppletContext</a> getAppletContext()
</pre>
<dl>
  <dd> Determines this applet's context, which allows the applet to 
 query and affect the environment in which it runs. 
 <p>
 This environment of an applet represents the document that 
 contains the applet.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the applet's context.
  </dl></dd>
</dl>
<a name="resize(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="resize"><b>resize</b></a>
<pre>
 public void resize(int width,
                    int height)
</pre>
<dl>
  <dd> Requests that this applet be resized.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> width - the new requested width for the applet.
    <dd> height - the new requested height for the applet.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#resize(int, int)">resize</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl></dd>
</dl>
<a name="resize(java.awt.Dimension)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="resize"><b>resize</b></a>
<pre>
 public void resize(<a href="java.awt.Dimension.html#_top_">Dimension</a> d)
</pre>
<dl>
  <dd> Requests that this applet be resized.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> d - an object giving the new width and height.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#resize(java.awt.Dimension)">resize</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl></dd>
</dl>
<a name="showStatus(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="showStatus"><b>showStatus</b></a>
<pre>
 public void showStatus(<a href="java.lang.String.html#_top_">String</a> msg)
</pre>
<dl>
  <dd> Requests that the argument string be displayed in the 
 "status window". Many browsers and applet viewers 
 provide such a window, where the application can inform users of 
 its current state.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> msg - a string to display in the status window.
  </dl></dd>
</dl>
<a name="getImage(java.net.URL)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getImage"><b>getImage</b></a>
<pre>
 public <a href="java.awt.Image.html#_top_">Image</a> getImage(<a href="java.net.URL.html#_top_">URL</a> url)
</pre>
<dl>
  <dd> Returns an <code>Image</code> object that can then be painted on 
 the screen. The <code>url</code> that is passed as an argument 
 must specify an absolute URL. 
 <p>
 This method always returns immediately, whether or not the image 
 exists. When this applet attempts to draw the image on the screen, 
 the data will be loaded. The graphics primitives that draw the 
 image will incrementally paint on the screen.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> url - an absolute URL giving the location of the image.
    <dt> <b>Returns:</b>
    <dd> the image at the specified URL.
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Image.html#_top_">Image</a>
  </dl></dd>
</dl>
<a name="getImage(java.net.URL, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getImage"><b>getImage</b></a>
<pre>
 public <a href="java.awt.Image.html#_top_">Image</a> getImage(<a href="java.net.URL.html#_top_">URL</a> url,
                       <a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Returns an <code>Image</code> object that can then be painted on 
 the screen. The <code>url</code> argument must specify an absolute 
 URL. The <code>name</code> argument is a specifier that is 
 relative to the <code>url</code> argument. 
 <p>
 This method always returns immediately, whether or not the image 
 exists. When this applet attempts to draw the image on the screen, 
 the data will be loaded. The graphics primitives that draw the 
 image will incrementally paint on the screen.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> url - an absolute URL giving the base location of the image.
    <dd> name - the location of the image, relative to the
                 <code>url</code> argument.
    <dt> <b>Returns:</b>
    <dd> the image at the specified URL.
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Image.html#_top_">Image</a>
  </dl></dd>
</dl>
<a name="getAudioClip(java.net.URL)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getAudioClip"><b>getAudioClip</b></a>
<pre>
 public <a href="java.applet.AudioClip.html#_top_">AudioClip</a> getAudioClip(<a href="java.net.URL.html#_top_">URL</a> url)
</pre>
<dl>
  <dd> Returns the <code>AudioClip</code> object specified by the 
 <code>URL</code> argument. 
 <p>
 This method always returns immediately, whether or not the audio 
 clip exists. When this applet attempts to play the audio clip, the 
 data will be loaded.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> url - an absolute URL giving the location of the audio clip.
    <dt> <b>Returns:</b>
    <dd> the audio clip at the specified URL.
    <dt> <b>See Also:</b>
    <dd> <a href="java.applet.AudioClip.html#_top_">AudioClip</a>
  </dl></dd>
</dl>
<a name="getAudioClip(java.net.URL, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getAudioClip"><b>getAudioClip</b></a>
<pre>
 public <a href="java.applet.AudioClip.html#_top_">AudioClip</a> getAudioClip(<a href="java.net.URL.html#_top_">URL</a> url,
                               <a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Returns the <code>AudioClip</code> object specified by the 
 <code>URL</code> and <code>name</code> arguments. 
 <p>
 This method always returns immediately, whether or not the audio 
 clip exists. When this applet attempts to play the audio clip, the 
 data will be loaded.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> url - an absolute URL giving the base location of the
                 audio clip.
    <dd> name - the location of the audio clip, relative to the
                 <code>url</code> argument.
    <dt> <b>Returns:</b>
    <dd> the audio clip at the specified URL.
    <dt> <b>See Also:</b>
    <dd> <a href="java.applet.AudioClip.html#_top_">AudioClip</a>
  </dl></dd>
</dl>
<a name="getAppletInfo()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getAppletInfo"><b>getAppletInfo</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getAppletInfo()
</pre>
<dl>
  <dd> Returns information about this applet. An applet should override 
 this method to return a <code>String</code> containing information 
 about the author, version, and copyright of the applet. 
 <p>
 The implementation of this method provided by the 
 <code>Applet</code> class returns <code>null</code>.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string containing information about the author, version, and
          copyright of the applet.
  </dl></dd>
</dl>
<a name="getLocale()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLocale"><b>getLocale</b></a>
<pre>
 public <a href="java.util.Locale.html#_top_">Locale</a> getLocale()
</pre>
<dl>
  <dd> Gets the Locale for the applet, if it has been set.
 If no Locale has been set, then the default Locale 
 is returned.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> [Needs to be documented!]
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#getLocale()">getLocale</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl></dd>
</dl>
<a name="getParameterInfo()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getParameterInfo"><b>getParameterInfo</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a>[][] getParameterInfo()
</pre>
<dl>
  <dd> Returns information about the parameters than are understood by 
 this applet. An applet should override this method to return an 
 array of <code>Strings</code> describing these parameters. 
 <p>
 Each element of the array should be a set of three 
 <code>Strings</code> containing the name, the type, and a 
 description. For example:
 <p><blockquote><pre>
 String pinfo[][] = {
	 {"fps",    "1-10",    "frames per second"},
	 {"repeat", "boolean", "repeat image loop"},
	 {"imgs",   "url",     "images directory"}
 };
 </pre></blockquote>
 <p>
 The implementation of this method provided by the 
 <code>Applet</code> class returns <code>null</code>.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> an array describing the parameters this applet looks for.
  </dl></dd>
</dl>
<a name="play(java.net.URL)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="play"><b>play</b></a>
<pre>
 public void play(<a href="java.net.URL.html#_top_">URL</a> url)
</pre>
<dl>
  <dd> Plays the audio clip at the specified absolute URL. Nothing 
 happens if the audio clip cannot be found.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> url - an absolute URL giving the location of the audio clip.
  </dl></dd>
</dl>
<a name="play(java.net.URL, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="play"><b>play</b></a>
<pre>
 public void play(<a href="java.net.URL.html#_top_">URL</a> url,
                  <a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Plays the audio clip given the URL and a specifier that is 
 relative to it. Nothing happens if the audio clip cannot be found.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> url - an absolute URL giving the base location of the
                 audio clip.
    <dd> name - the location of the audio clip, relative to the
                 <code>url</code> argument.
  </dl></dd>
</dl>
<a name="init()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="init"><b>init</b></a>
<pre>
 public void init()
</pre>
<dl>
  <dd> Called by the browser or applet viewer to inform 
 this applet that it has been loaded into the system. It is always 
 called before the first time that the <code>start</code> method is 
 called. 
 <p>
 A subclass of <code>Applet</code> should override this method if 
 it has initialization to perform. For example, an applet with 
 threads would use the <code>init</code> method to create the 
 threads and the <code>destroy</code> method to kill them. 
 <p>
 The implementation of this method provided by the 
 <code>Applet</code> class does nothing.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#destroy()">destroy</a>, <a href="#start()">start</a>, <a href="#stop()">stop</a>
  </dl></dd>
</dl>
<a name="start()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="start"><b>start</b></a>
<pre>
 public void start()
</pre>
<dl>
  <dd> Called by the browser or applet viewer to inform 
 this applet that it should start its execution. It is called after 
 the <code>init</code> method and each time the applet is revisited 
 in a Web page. 
 <p>
 A subclass of <code>Applet</code> should override this method if 
 it has any operation that it wants to perform each time the Web 
 page containing it is visited. For example, an applet with 
 animation might want to use the <code>start</code> method to 
 resume animation, and the <code>stop</code> method to suspend the 
 animation. 
 <p>
 The implementation of this method provided by the 
 <code>Applet</code> class does nothing.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#destroy()">destroy</a>, <a href="#init()">init</a>, <a href="#stop()">stop</a>
  </dl></dd>
</dl>
<a name="stop()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="stop"><b>stop</b></a>
<pre>
 public void stop()
</pre>
<dl>
  <dd> Called by the browser or applet viewer to inform 
 this applet that it should stop its execution. It is called when 
 the Web page that contains this applet has been replaced by 
 another page, and also just before the applet is to be destroyed. 
 <p>
 A subclass of <code>Applet</code> should override this method if 
 it has any operation that it wants to perform each time the Web 
 page containing it is no longer visible. For example, an applet 
 with animation might want to use the <code>start</code> method to 
 resume animation, and the <code>stop</code> method to suspend the 
 animation. 
 <p>
 The implementation of this method provided by the 
 <code>Applet</code> class does nothing.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#destroy()">destroy</a>, <a href="#init()">init</a>
  </dl></dd>
</dl>
<a name="destroy()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="destroy"><b>destroy</b></a>
<pre>
 public void destroy()
</pre>
<dl>
  <dd> 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 <code>stop</code> method 
 will always be called before <code>destroy</code>. 
 <p>
 A subclass of <code>Applet</code> 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 
 <code>init</code> method to create the threads and the 
 <code>destroy</code> method to kill them. 
 <p>
 The implementation of this method provided by the 
 <code>Applet</code> class does nothing.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#init()">init</a>, <a href="#start()">start</a>, <a href="#stop()">stop</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.applet.html">This Package</a>  <a href="Package-java.applet.html">Previous</a>  <a href="Package-java.applet.html">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
