FileDocCategorySizeDatePackage
Frame1.javaAPI DocExample831Fri Nov 09 13:10:32 GMT 2001Lecture8.PolyMorphism

Frame1

public class Frame1 extends JFrame

Fields Summary
BorderLayout
borderLayout1
Constructors Summary
public Frame1()


  //Construct the frame
    
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try  {
      jbInit();
    }
    catch(Exception e) {
      e.printStackTrace();
    }
  
Methods Summary
private voidjbInit()

    this.getContentPane().setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
  
protected voidprocessWindowEvent(java.awt.event.WindowEvent e)

    super.processWindowEvent(e);
    if(e.getID() == WindowEvent.WINDOW_CLOSING) {
      System.exit(0);
    }