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

public class SnowManFace extends JFrame {
    private class MyPanel extends JPanel {

        public void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    g.setColor(Color.YELLOW);
            g.fillOval(20, 30, 200, 200);
            g.setColor(Color.BLACK);
            g.drawArc(60, 80, 50, 50, 180, -180); // 왼쪽 눈
            g.drawArc(150, 80, 50, 50, 180, -180); // 오른쪽 눈
            g.drawArc(70, 130, 100, 70, 180, 180); // 입
        }
    }
    public SnowManFace() {
        setSize(300, 300);
        setTitle("눈사람 얼굴");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        add(new MyPanel());
        setVisible(true);
    }
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> new SnowManFace());
    }
}