/*

	 applet that runs a panel

*/



import java.awt.*;

import java.applet.Applet;



public class PanelApplet extends Applet

	{

	EventPanel ePanel;



	public void init()

		{

		this.setLayout(null);

		ePanel = new SqueezePanel();   // <-- your program name must go here

		this.add(ePanel);

		ePanel.setSize(getSize().width+400, getSize().height+400);

		ePanel.setLocation(0,0);

		ePanel.setVisible(true);

		ePanel.requestFocus();

	//	addKeyListener(ePanel);
//		addMouseListener(ePanel);

		}

	public static void main(String args[])
	  {

		  PanelApplet pa = new PanelApplet();
		  Frame f = new Frame();
		  f.setSize(600,600);
		  f.setVisible(true);
		  f.add(pa);
		  f.addNotify();

		  pa.addNotify();
		  pa.init();
		  f.show();      //  Need this to show applet!

	   }

	}

