import java.applet.* ; import java.awt.* ; public class demo03b extends Applet { Button[] buttons = new Button[5] ; public void init() { int i ; for( i=0 ; i<5 ; i++ ) { buttons[i] = new Button("Button"+(i+1)) ; } setLayout( new BorderLayout() ) ; add("North", buttons[0]) ; add("West", buttons[1]) ; add("East", buttons[2]) ; add("South", buttons[3]) ; add("Center",buttons[4]) ; } }