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

public class SimApplet extends JApplet {

    final static int GRID_ROWS = 10;
    final static int GRID_COLUMNS = 10;
    private static final int FRAME_WIDTH = 520;
    private static final int FRAME_HEIGHT = 590;

    public SimApplet () {
	JRootPane pane = getRootPane ();
	//@assume pane != null
	pane.putClientProperty ("defaultSystemEventQueueCheck", Boolean.TRUE);
    }

    public void init() {
	Grid grid = new Grid (GRID_ROWS, GRID_COLUMNS);
	Simulator sim = new Simulator (FRAME_HEIGHT, FRAME_WIDTH, grid);
        sim.addClass ("Frog");
        sim.addClass ("Turtle");
	sim.addClass ("HostileFrog");
	Container pane = getContentPane ();
	//@assume pane != null
	pane.add(sim, BorderLayout.CENTER);
    }
}