Subclassing Applet class
Subclassing Applet class
- java.applet.Applet class
- import java.applet.Applet;
public class myApplet extends Applet {
...
- // or
public class myApplet extends java.applet.Applet {
...
- Overriding Methods
- init( )
- Initialize the applet, i.e. initilize the instance variables.
- start( )
- Start the execution.
- If threads are used, construct and start the threads here.
- stop( )
- Do not take up system resources when the page is not being viewed.
- Usually stop the thread that started in start( ) and de-reference the thread object for the garbage collector to collect it.
Notes: