package CHAPTER10;

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

// JFrame을 상속하여 GUI 생성
public class C10_07_FlowLayoutExample extends JFrame {
    public C10_07_FlowLayoutExample() {
        // JFrame 기본 설정
        setTitle("FlowLayout 예제");
        setSize(400, 200);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        // FlowLayout 설정
        setLayout(new FlowLayout());

        // 버튼 추가
        add(new JButton("버튼 1"));
        add(new JButton("버튼 2"));
        add(new JButton("버튼 3"));
    }

    public static void main(String[] args) {
        // JFrame 실행
        C10_07_FlowLayoutExample frame = new C10_07_FlowLayoutExample();
        frame.setVisible(true);
    }
}
/**
  예제명: FlowLayoutExample

설명:
FlowLayout은 컴포넌트를 왼쪽에서 오른쪽으로 배치합니다. 이 예제에서는 FlowLayout의 기본 동작을 보여줍니다.
*/
