import java.applet.Applet; import java.awt.*; public class BorderLayout3 extends Applet { Button EastButton, SouthButton, CenterButton; public void init() { // instantiating the button objects EastButton = new Button("East"); SouthButton = new Button("South"); CenterButton = new Button("Center"); // setting layout to BorderLayout with NO horizontal and vertical spacing setLayout(new BorderLayout()); // order is not important here as we are specifying the positions add("East", EastButton); add("South", SouthButton); add("Center", CenterButton); } }