FileDocCategorySizeDatePackage
TTFontApplet.javaAPI DocExample729Tue Dec 25 16:00:08 GMT 2001None

TTFontApplet

public class TTFontApplet extends JApplet
Create a TTFontDemo label in an Applet.
version
$Id: TTFontApplet.java,v 1.1 2001/12/25 21:00:08 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public voidinit()
Initialize the GUI


		String message = getParameter("message");
		if (message == null) 
			message = "TrueType Font Demonstration Applet";

		String fontFileName = getParameter("fontFileName");
		if (fontFileName == null)
			fontFileName = "Kellyag_.ttf";
		Container cp = getContentPane();
		try {
			cp.add(new TTFontDemo(fontFileName, message));
		} catch (Exception ex) {
			cp.add(new JLabel(ex.toString(), JLabel.CENTER));
			ex.printStackTrace();
		}