BorderLayout

ALT= "Applet could not be loaded" Sorry, it is time to upgrade your browser to a Java powered one.


import java.applet.Applet;
import java.awt.*;

public class Border extends Applet {
	private Button centerButton, eastButton, westButton, northButton, southButton;

	public void init()
	{
		centerButton = new Button( "center Button");
		westButton = new Button( "west Button");
		eastButton = new Button( "east Button");
		northButton = new Button( "north Button");
		southButton = new Button( "south Button");

		setLayout (new BorderLayout() );

		add ( "South", southButton);
		add ( "North", northButton);
		add ( "East", eastButton);
		add ( "West", westButton);
		add ( "Center", centerButton);
	}
}