The Applet Class public class MyApplet extends java applet Applet i /* The no-arg constructor is called by the browser when the Web page containing this applet is initially loaded, or reloaded public MyApplet ()( /** Called by the browser after the applet is loaded public void init() /* Called by the browser after the init() method every time the Web page is visited public void start ()t /* Called by the browser when the page containing this applet becomes inactive public void stop( /* Called by the browser when the Web browser exits * publi d destroy() t /* other methods if necessaryLiang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved. 0-13-148952-6 9 The Applet Class public class MyApplet extends java.applet.Applet { ... /** The no-arg constructor is called by the browser when the Web page containing this applet is initially loaded, or reloaded */ public MyApplet() { ... } /** Called by the browser after the applet is loaded */ public void init() { ... } /** Called by the browser after the init() method, or every time the Web page is visited */ public void start() { ... } /** Called by the browser when the page containing this applet becomes inactive */ public void stop() { ... } /** Called by the browser when the Web browser exits */ public void destroy() { ... } /** Other methods if necessary... */ }