FileDocCategorySizeDatePackage
Frame1.javaAPI DocExample960Tue Feb 12 13:33:58 GMT 2002hospital

Frame1

public class Frame1 extends JFrame

Fields Summary
JPanel
contentPane
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()
Component initialization

    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
  
protected voidprocessWindowEvent(java.awt.event.WindowEvent e)
Overridden so we can exit when window is closed

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