FileDocCategorySizeDatePackage
TrueTypeTest.javaAPI DocExample788Sun Jan 07 16:16:38 GMT 2001None

TrueTypeTest

public class TrueTypeTest extends JFrame

Fields Summary
private String
textMessage
Constructors Summary
public TrueTypeTest()


    
    super("TrueType Font Demonstration");

    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    ge.getAllFonts();

    Font font = new Font("Jokerman", Font.PLAIN, 35);
    JLabel textLabel = new JLabel(textMessage);
    textLabel.setFont(font);

    getContentPane().add(textLabel);
    show();
  
Methods Summary
public static voidmain(java.lang.String[] args)

    JFrame frame = new TrueTypeTest();
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {System.exit(0);}
    });

    frame.pack();
    frame.setVisible(true);