Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.awt.MenuBar

Availability: JDK 1.0

public class MenuBar extends MenuComponent implements MenuContainer {
   // Public Constructor
      public MenuBar();
   // Public Instance Methods
      public synchronized Menu add(Menu m);
      public void addNotify();
#    public int countMenus();
1.1  public void deleteShortcut(MenuShortcut s);
      public Menu getHelpMenu();
      public Menu getMenu(int i);
1.1  public int getMenuCount();
1.1  public MenuItem getShortcutMenuItem(MenuShortcut s);
      public synchronized void remove(int index);
      public synchronized void remove(MenuComponent m);
      public void removeNotify();  // Overrides MenuComponent.removeNotify()
      public synchronized void setHelpMenu(Menu m);
1.1  public synchronized Enumeration shortcuts();
}
Passed To:
Frame.setMenuBar(), FramePeer.setMenuBar(), Toolkit.createMenuBar().
Returned By:
Frame.getMenuBar(), ResourceBundle.getMenuBar().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.