FileDocCategorySizeDatePackage
panelex.javaAPI DocExample983Mon Mar 24 01:57:44 GMT 1997None

panelex

public class panelex extends Applet

Fields Summary
String[]
fonts
Constructors Summary
Methods Summary
java.awt.PanelfillPanel(java.awt.Panel p)

        Button b;
        p.setLayout (new GridLayout (0,1, 3, 3));
	for (int i = 0; i < fonts.length; i++) {
            p.add (b = new Button (fonts[i].substring(0,2)));
	}
	return (p);
    
public voidinit()

	Panel p;
	fonts = Toolkit.getDefaultToolkit().getFontList();
	for (int i = 0; i < 2; i++) {
	    p = fillPanel (new Panel());
	    add (p);
            p.setLayout (new GridLayout (1,0, 3, 3));
	    p.add (fillPanel (new Panel()));
            p.add (fillPanel (new Panel()));
	}
        setLayout (new FlowLayout ());