//
// This program shows the usage of
// BorderLayout

import java.awt.*;
import java.applet.*;

public class BorderLayoutExample extends Applet
{
	Panel borderLayoutPanel;

	Button northButton;
	Button southButton;
	Button eastButton;
	Button westButton;
	Button centerButton;
	
	public void init()
	{
		borderLayoutPanel = new Panel();
		borderLayoutPanel.setLayout(new BorderLayout());

		northButton = new Button("North");
		southButton = new Button("South");
		eastButton  = new Button("East");
		westButton  = new Button("West");
		centerButton = new Button("Center");

		borderLayoutPanel.add("North",northButton);
		borderLayoutPanel.add("South",southButton);
		borderLayoutPanel.add("East",eastButton);
		borderLayoutPanel.add("West",westButton);
		borderLayoutPanel.add("Center",centerButton);
		
		add(borderLayoutPanel);		
		
	}
}

// This comment for appletiviewer
// <applet code="BorderLayoutExample.class" width="400" height="400">This is an applet</applet>
