// 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);
}