// Create and specify a layout manager for this applet.
// Layout components into a grid three columns wide, with the number
// of rows to depend on the number of components. Leave 10 pixels
// of horizontal and vertical space between components
this.setLayout(new GridLayout(0, 3, 10, 10));
for(int i = 1; i <= 9; i++)
this.add(new Button("Button #" + i));