import java.applet.*; import java.awt.*; // class Helloj1 - demonstration hello world program (AWT) public class Helloj1 extends Applet { // Helloj1 Class Constructor public Helloj1() { // TODO: Add constructor code here } // The init() method is called by the AWT when an applet is first loaded or // reloaded. Override this method to perform whatever initialization your // applet needs, such as initializing data structures, loading images or // fonts, creating frame windows, setting the layout manager, or adding UI // components. public void init() { // TODO: Place additional initialization code here } // Place additional applet clean up code here. destroy() is called when // when you applet is terminating and being unloaded. public void destroy() { // TODO: Place applet cleanup code here } // Helloj1 Paint Handler public void paint(Graphics g) { g.drawString("Hello World", 10, 20); } // The start() method is called when the page containing the applet // first appears on the screen. The AppletWizard's initial implementation // of this method starts execution of the applet's thread. public void start() { // TODO: Place applet start code here } // The stop() method is called when the page containing the applet is // no longer on the screen. The AppletWizard's initial implementation of // this method stops execution of the applet's thread. public void stop() { // TODO: Place applet stop code here } }