Webber: A Website Construction Application


DefaultWindow.java


// A closeable Frame component

package library;

import java.awt.*;
import java.awt.event.*;

public class DefaultWindow extends Frame implements WindowListener {
	
	// Constructor
	public DefaultWindow(String title) {
		super(title);
		addWindowListener(this);	// Catch frame events
	}
	
	// Window event listeners
	public void windowActivated(WindowEvent e){}
	public void windowClosed(WindowEvent e){}
	public void windowClosing(WindowEvent e) { dispose(); }
	public void windowDeactivated(WindowEvent e){}
	public void windowDeiconified(WindowEvent e){}
	public void windowIconified(WindowEvent e){}
	public void windowOpened(WindowEvent e){}
}

Go To: Source Code