FileDocCategorySizeDatePackage
WelcomeFrame.javaAPI DocExample2244Sat Sep 12 03:01:00 BST 1998welcome

WelcomeFrame

public class WelcomeFrame extends DecoratedFrame

Fields Summary
BorderLayout
borderLayout1
BevelPanel
panel1
XYLayout
xYLayout1
MenuBar
menuBar1
Menu
menuFile
MenuItem
menuFileExit
Menu
menuHelp
MenuItem
menuHelpAbout
Constructors Summary
public WelcomeFrame()


  // Construct the frame
    
    try {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  
Methods Summary
public voidfileExit_actionPerformed(java.awt.event.ActionEvent e)

    System.exit(0);
  
public voidhelpAbout_actionPerformed(java.awt.event.ActionEvent e)

  
private voidjbInit()

    this.setLayout(borderLayout1);
    this.setTitle("Welcome to JBuilder");
    menuFile.setLabel("File");
    menuFileExit.setLabel("Exit");
    menuFileExit.addActionListener(new WelcomeFrame_menuFileExit_ActionAdapter(this));
    menuFile.add(menuFileExit);
    menuHelp.setLabel("Help");
    menuHelpAbout.setLabel("About");
    menuHelpAbout.addActionListener(new WelcomeFrame_menuHelpAbout_ActionAdapter(this));
    this.setMenuBar(menuBar1);
    this.setSize(new Dimension(400, 300));
    panel1.setLayout(xYLayout1);

    menuHelp.add(menuHelpAbout);
    menuBar1.add(menuFile);
    menuBar1.add(menuHelp);
    this.add(panel1, BorderLayout.CENTER);