// Try this first JAVA applet to test your jdk instalation // and compare JAVA applets to JAVA applications. /* NOTE: You must create the following HTML document as a separate file to run this applet. Example Applet */ import java.applet.Applet; /* contains the Applet class */ import java.awt.*; /* contains JAVA graphics capabilities */ // NOTE: Class TryApplet must be PUBLIC. public class TryApplet extends Applet { public void paint (Graphics example) { example.drawString("My first JAVA applet!", 50, 100); example.drawString("To continue, close this window", 50, 150); example.drawString("by clicking on the X box.", 50, 165); } }