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

public class BorderLayoutTest extends JFrame {
    public BorderLayoutTest() {
        setTitle("BoarderLayoutTest");
        setSize(300, 150);
        setLayout(new BorderLayout(10, 10));  // 수평 간격 10픽셀, 수직 간격 10픽셀
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        add(new JButton("North"), "North");
        add(new JButton("South"), "South");
        add(new JButton("East"), "East");
        add(new JButton("West"), "West");
        add(new JButton("Center"), "Center");
        setVisible(true);
    }
    public static void main(String argv[]) {
        SwingUtilities.invokeLater(() ->	new BorderLayoutTest());
    }
}