import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.JPanel;

/*
 * Created on 2006/02/24
 */

public class MainPanel extends JPanel {
    // plTCY
    private static final int WIDTH = 240;
    private static final int HEIGHT = 240;
    // æÊÉ\¦·é¶ñ
    private String str;

    public MainPanel() {
        // plÌ§TCYðÝèApack()·éÆ«ÉKv
        setPreferredSize(new Dimension(WIDTH, HEIGHT));
        // ÏÌú»
        str = "Hello World";
    }

    public void paintComponent(Graphics g) {
        super.paintComponent(g);

        // (20,50)ÌÊuÉHello Worldð`æ·é
        g.drawString(str, 20, 50);
    }
}
