BorderLayout With Gaps

Previous     Next     blgt.java     BLGT.java     Home     Package

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

public class BLGT extends JFrame {
   public BLGT () {
      setLayout(new BorderLayout(20,20));
      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"));
   }
}