FileDocCategorySizeDatePackage
TTFontApplet.javaAPI DocExample741Thu Mar 25 21:34:32 GMT 2004None

TTFontApplet

public class TTFontApplet extends JApplet
Create a TTFontDemo label in an Applet.
version
$Id: TTFontApplet.java,v 1.2 2004/03/26 03:34:31 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();
		}