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

public class MemberInfoForm extends JFrame {
    public MemberInfoForm() {

        setTitle("회원 정보 입력");
        setSize(400, 300);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JPanel panel = new JPanel(new GridLayout(5, 2, 10, 10));

        panel.add(new JLabel("이름:"));
        panel.add(new JTextField());

        panel.add(new JLabel("이메일:"));
        panel.add(new JTextField());

        panel.add(new JLabel("전화번호:"));
        panel.add(new JTextField());

        panel.add(new JLabel("비밀번호:"));
        panel.add(new JPasswordField());

        panel.add(new JButton("확인"));  // 확인 버튼 추가
        panel.add(new JButton("취소"));  // 취소 버튼 추가

        add(panel);  // 메인 패널을 프레임에 추가
        setVisible(true);
    }

    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> new MemberInfoForm());
    }
}