UNB/ CS/ David Bremner/ teaching/ java/ DBFrame.java
import javax.swing.JFrame;
import java.awt.FlowLayout;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
import java.awt.LayoutManager;
public class DBFrame extends JFrame{
    final public static int DEFAULT_HEIGHT=400;
    final public static int DEFAULT_WIDTH=300;

    public DBFrame(){
        this(DEFAULT_HEIGHT, DEFAULT_WIDTH, new FlowLayout());
    }

    public DBFrame(LayoutManager layout){
        this(DEFAULT_HEIGHT, DEFAULT_WIDTH, layout);
    }


    public DBFrame(int height, int width){
        this(height,width,new FlowLayout());
    }


    public DBFrame(int height, int width, LayoutManager layout){
        addWindowListener(new WindowCloser());
        getContentPane().setLayout(layout);
        setSize(height,width);
    }

        
}
//