/* Example Applet /* import javax.swing.*; // the swing package contains the JApplet class, which extends // the Applet class. import java.awt.*; /* contains JAVA graphics capabilities */ // NOTE: Class TryApplet must be PUBLIC. public class TryApplet extends JApplet { 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); } }