BorderLayout Example
public class TestBorderLayout
public static String[] borders =
{"North", "East", "South", "West", "Center"};
public static void main(String[] args) {
TestBorderLayout tbl = new TestBorderLayout();
tbl.setLayout(new BorderLayout(10,10));
tbl.add(new Button(borders[i]), borders[i]);