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

public class PhilosopherApplet extends JApplet {

    final static int GRID_ROWS = 50;
    final static int GRID_COLUMNS = 50;

    public PhilosopherApplet () {
	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 (grid);
	Container pane = getContentPane ();
	//@assume pane != null
	pane.add(sim, BorderLayout.CENTER);
    }
}