/*
 * ì¬ú: 2004/10/15
 *
 */
import java.awt.*;
import javax.swing.*;
/**
 * CtQ[AvP[VB
 * 
 * @author mori
 *  
 */
public class LifeGame extends JFrame {
    public LifeGame() {
        // ^CgðÝè
        setTitle("CtQ[");
        // TCYÏXðsÂ\É·é
        setResizable(false);

        // Cplðì¬
        MainPanel mainPanel = new MainPanel();
        Container contentPane = getContentPane();
        contentPane.add(mainPanel, BorderLayout.CENTER);

        // Rg[plðì¬
        ControlPanel ctrlPanel = new ControlPanel(mainPanel);
        contentPane.add(ctrlPanel, BorderLayout.NORTH);

        // CtQ[Ìîñpl
        InfoPanel infoPanel = new InfoPanel(mainPanel);
        contentPane.add(infoPanel, BorderLayout.SOUTH);

        // CplÉîñplðn·
        mainPanel.setInfoPanel(infoPanel);

        // plTCYÉí¹Ät[TCYð©®Ýè
        pack();
    }

    public static void main(String[] args) {
        LifeGame frame = new LifeGame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
}