BorderLayout

Previous     Next     blt.java     BLT.java     Home     Package

import java.awt.*;
import javax.swing.*;

public class BLT extends JFrame {
   public BLT () {
      setLayout(new BorderLayout());
      add("North", new JButton("North"));
      add("South", new JButton("South"));
      add("East", new JButton("East"));
      add("West", new JButton("West"));
      add("Center", new JButton("Center"));
   }
}