//Simp1.java //used in demo of multiple applets in an HTML file import java.awt.Graphics; import javax.swing.*; public class Simp1 extends JApplet { public void paint( Graphics g ) { super.paint( g ); g.drawString("Hello from Simp1 applet", 20, 20); System.out.println("console message from simp1 for debugging purposes"); //in shell if run from appletviewer //maybe in Java Console? } }