FileDocCategorySizeDatePackage
FontDemo.javaAPI DocExample6647Tue Dec 12 18:59:06 GMT 2000None

FontDemo

public class FontDemo extends JApplet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()
Executed only in applet.

        FontPanel fontPanel = new FontPanel();
        getContentPane().add(fontPanel, BorderLayout.CENTER);
    
public static voidmain(java.lang.String[] args)
Executed only in application.

        JFrame f = new JFrame("FontDemo");
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
        FontPanel fontPanel = new FontPanel();
        f.getContentPane().add(fontPanel, BorderLayout.CENTER);
        f.setSize(550, 200);
        f.setVisible(true);