Menu Example

private void CreateMenu()
{
   MenuBar mb = new MenuBar();
   Menu fileB = new Menu("File");
   mb.add(fileB);

   NewButton newB = new NewButton("New");
   QuitButton quitB = new QuitButton("Quit");
   fileB.add(newB); fileB.add(quitB);
   
   Menu editB = new Menu("Edit");
   mb.add(editB);
   
   setMenuBar(mb);
}


Slide 100 ©Copyright 1997 Jan Newmarch