import java.awt.*; import java.applet.*; /** * This class displays "Hello world!" on the applet window. */ public class HelloWorld extends Applet { public void paint(Graphics g) { g.drawString("Hello world!", 10, 10); // writes starting at pixel row 10, col 10 } }