The Quintessential Applet Every applet must subclass Applet. import java.applet.*; import java.awt.*; public class BasicApplet extends Applet { public void init() { // Called once by the browser when // it starts the applet. } public void start() { // Called whenever the page containing // this applet is made visible. } public void stop() { // Called whenever the page containing this // applet is not visible. } public void destroyed() { // Called once when the browser destroys // this applet. } public void paint(Graphics g) { // Called whenever this applet needs to // repaint itself. } }