/** MyApplet1.java: First Hello World Applet ** Assignment: Modify this file by changing ** the text and position of the text. ** Also, take a look at the MyApplet1.html ** webpage file for displaying this applet. **/ /** USE EXISTING JAVA CLASSES **/ import java.awt.*; import java.applet.Applet; /** EXTEND THE JAVA APPLET CLASS **/ public class MyApplet1 extends Applet { public void paint(Graphics g) { g.drawString("Hello world!", 5, 25); // Note Java x,y coordinates are } // both positive, starting in the } // upper left hand corner at [0,0] // and in this case going right // 5 pixels, and down 25 pixels. // Yes, this is different from your // math courses, since the positive // y direction is normally upward.