/*
<APPLET CODE="PeanutsApplet.class" WIDTH=600 HEIGHT=600></APPLET>
*/

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

/**
 * An applet that displays a game.
 *
 * @author Jim Glenn
 * @version 0.1 from LiberationApplet of 1/8/2009
 */

public class PeanutsApplet extends JApplet
{
    public void init()
    {
	PeanutsModel model = new PeanutsModel();
	GameView view = new GameView(model);
	PeanutsControl control = new PeanutsControl(model);
	view.addKeyListener(control);

	getContentPane().setLayout(new BorderLayout());
	getContentPane().add(view, BorderLayout.CENTER);
    }
}

	

