A complete menu (2)
private void CreateMenu()
{
MenuBar mb = new MenuBar();
Menu fileB = new Menu("File");
mb.add(fileB);
fileB.add(new NewButton("New"));
fileB.add(new QuitButton("Quit"));
Menu editB = new Menu("Edit");
mb.add(editB);
setMenuBar(mb);
}
}