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();
}