FileDocCategorySizeDatePackage
NullLayoutExample.javaAPI DocExample833Wed Jun 03 10:32:46 BST 1998None

NullLayoutExample

public class NullLayoutExample extends Applet

Fields Summary
Constructors Summary
Methods Summary
public java.awt.DimensiongetPreferredSize()

 return new Dimension(350, 225); 
public voidinit()

    // Get rid of the default layout manager.
    // We'll arrange the components ourself.
    this.setLayout(null);
    for(int i = 1; i <= 9; i++) {
      Button b = new Button("Button #" + i);
      b.setBounds(i*26, i*18, 100, 25); // use reshape() in Java 1.0
      this.add(b);
    }