Border Layout in Java
BorderLayout divides the container into five parts (directions),east,west,north,south,centre. By using this Layout we can place AWT components in each part (different location). BORDER LAYOUT IN JAVA EXAMPLE import java.awt.*; import java.applet.*; public class bordr extends Applet { Button b1,b2,b3,b4,b5; public void init() { b1=new Button(“east”); b1.setBackground(Color.RED); b2=new Button(“west”); b2.setBackground(Color.GREEN); b3=new Button(“south”); b3.setBackground(Color.BLACK); b4=new Button(“north”); b4.setBackground(Color.BLUE); … Read more