// HelloAWTApplet.java (c) 2005-2006 Kari Laitinen // 2005-09-28 File created. // 2006-10-02 Latest modification. // This prorgram is a traditional version of HelloApplet.java // This means that the so-called 'swing' classes are not used in // this program. This applet is based solely on the older AWT (Abstract // Windowing Toolkit) library. The used applet class is derived from // java.applet.Applet and not from javax.swing.JApplet. // Swing classes represent newer Java technology and thus // they should be favored in Java programming. When swing classes are // in use, Java programs should always provide the same Graphical User // Interface (GUI) regardless of the environment (Windows, UNIX, Linux, // Macintosh, etc.) in which the programs are executed. import java.awt.* ; public class HelloAWTApplet extends java.applet.Applet { public void paint( Graphics graphics ) { graphics.drawString( "Hello. I am a Java applet.", 80, 100 ) ; graphics.drawString( "The coordinates of this line are (80,150).", 80, 150 ) ; } }