package CHAP09;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class C9_11_JLabelExample extends JFrame {
    public C9_11_JLabelExample() {
        JLabel label = new JLabel("Hello, JLabel!");
        add(label);
        setTitle("JLabel Example");
        setSize(300, 100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setVisible(true);
    }

    public static void main(String[] args) {
        new C10_11_JLabelExample();
    }
}