// JDraw - ApplicationFrame class
// Written by Dr. Fred Sullivan, adapted by Jim Calciano,
// Melanie Lear, and PJ Waskiewicz
// November 18, 1998
// Class to implement the WindowListener, and also aid in making a
// nice behaving window.
import java.awt.*;
import java.awt.event.*;
public class ApplicationFrame extends Frame implements WindowListener {
private MenuBar menuBar;
public ApplicationFrame() {
menuBar = new MenuBar();
setMenuBar(menuBar);
addWindowListener(this);
}
public ApplicationFrame(String title) {
super(title);
menuBar = new MenuBar();
setMenuBar(menuBar);
addWindowListener(this);
}
public MenuBar getMenuBar() { return menuBar; }
public void windowActivated(WindowEvent e) {}
public void windowClosed(WindowEvent e) {}
public void windowDeactivated(WindowEvent e) {}
public void windowDeiconified(WindowEvent e) {}
public void windowIconified(WindowEvent e) {}
public void windowOpened(WindowEvent e) {}
public void windowClosing(WindowEvent e) {}
}