package mvp;

import javax.swing.JFrame;
import java.awt.Component;

/****
 *
 * Class Window is a toolkit-independent definition of a top-level window
 * displayed on the screen.  In Java, a Window is synonymous with JFrame.
 * In other toolkits, the definition of Window will vary.
 *
 * @author Gene Fisher (gfisher@calpoly.edu)
 *
 */

public class Window extends JFrame {

    /**
     * As a convenience, define the basic version of add to add the given
     * component to the content pane of the JFrame.  In jdk 1.3, attempting to
     * add directly to the JFrame rather than its content pane produces a
     * rather silly compiler error.
     */
    public Component add(Component comp) {
	return super.getContentPane().add(comp);
    }

}