/** BigText, gives you control over font, etc. */ //import java.awt.* import java.applet.*; import java.awt.Graphics; import java.awt.Font; public class BigText extends Applet { protected String text; // must declare init and paint methods public void init() { text = getParameter("text"); // from the applet tags if (text == null) { text = "Hot Java";} setFont(new Font("Ariel", Font.BOLD|Font.ITALIC, 40)); } public void paint(Graphics g) { g.drawString(text,5,45);} /** This method will be called from JavaScript to get new text */ public void setString(String aString) { text = aString; repaint(); // cause new text to show } }