// Lars Sorensen TYJava in 21 excode // Day 8 - page 144 of book // 6/11/96 // import java.awt.Graphics; import java.awt.Font; import java.awt.Color; public class MoreHelloApplet extends java.applet.Applet { Font f = new Font("TimesRoman",Font.BOLD,36); String name; public void init() { this.name = getParameter("name"); if ( this.name == null ) this.name = "Laura"; this.name = "Hello " + this.name + "!! "; } // end of init method public void paint(Graphics g) { g.setFont(f); g.setColor(Color.red); g.drawString(this.name, 5, 50); } // end of Paint method } // end of class and applet