import java.awt.*;
//creates a frame where we have better control over the events happening under it...
//This is mostley so that we can test out our applets and kill them in a application setting
//

public class Frame2 extends Frame
{
	public int x = 0;
	public Frame2(String Title)
	{
		super.setTitle(Title);
	}
	public boolean handleEvent(Event e)
	{
		System.out.println(e);
		if((e.target == this) & (e.id == 201))
		{
			System.out.println("System Close" + e);
			this.x = 1;
			return true;
		}
			else return false;
	 }

}
