import java.awt.*;
import java.awt.event.*;

public class CloseableFrame extends Frame implements WindowListener {

	public CloseableFrame() { this.addWindowListener(this);}

	public CloseableFrame(String title) {
	super(title);
	this.addWindowListener(this);	
	}

	public void windowClosing (WindowEvent e){this.dispose();}
	public void windowOpened (WindowEvent e){}
	public void windowClosed (WindowEvent e){}
	public void windowIconified (WindowEvent e){}
	public void windowDeiconified (WindowEvent e){}
	public void windowActivated (WindowEvent e){}
	public void windowDeactivated (WindowEvent e){}
	
}