FileDocCategorySizeDatePackage
buttons.javaAPI DocExample774Mon Mar 24 02:03:42 GMT 1997None

buttons

public class buttons extends Applet

Fields Summary
int
align
Constructors Summary
Methods Summary
public booleanaction(java.awt.Event e, java.lang.Object o)

    setLayout (new FlowLayout((align++) % 3));
    validate();
    return true;
  
public voidinit()

      
    String []fonts;
    setLayout (new FlowLayout (FlowLayout.CENTER, 0, 20));
    fonts = Toolkit.getDefaultToolkit().getFontList();
    for (int i = 0; i < fonts.length; i++) {
      add (new Button (fonts[i]));
    }