UNB/ CS/ David Bremner/ teaching/ java/ DBFrame2.java
import javax.swing.JFrame;
import java.awt.FlowLayout;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
public class DBFrame2 extends JFrame{
    public DBFrame2(int height, int width){
        setSize(height,width);
        getContentPane().setLayout(new FlowLayout());
        addWindowListener(
              new WindowAdapter() { 
                  public void windowClosing(WindowEvent e) {
                      System.exit(0);
                  }
              });
        
    }
}
//