/* CS7 - First Java Applet * This is a simple hello applet. * * To run this, do the following: * 1. log in to unixs * 2. cd public * 3. mkdir html [if you don't have one already) * 4. cd html * 5. create this program (HelloApplet.java) * 6. create HelloApplet.html * 7. compile HelloApplet.java * 8. open a web browser, go to www.pitt.edu/~yourid/HelloApplet.html * 9 the applet *should* run in your web browser */ import java.applet.*; import java.awt.*; public class HelloApplet extends Applet { public void paint(Graphics g) { g.drawString("Party on Wayne.", 25, 50); g.drawString("Party on Garth.", 35, 60); } // end paint() } // end of class