Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.awt.Menu

Availability: JDK 1.0

public class Menu extends MenuItem implements MenuContainer {
   // Public Constructors
1.1  public Menu();
      public Menu(String label);
      public Menu(String label, boolean tearOff);
   // Public Instance Methods
      public synchronized MenuItem add(MenuItem mi);
      public void add(String label);
      public void addNotify();  // Overrides MenuItem.addNotify()
      public void addSeparator();
#    public int countItems();
      public MenuItem getItem(int index);
1.1  public int getItemCount();
1.1  public synchronized void insert(MenuItem menuitem, int index);
1.1  public void insert(String label, int index);
1.1  public void insertSeparator(int index);
      public boolean isTearOff();
1.1  public String paramString();  // Overrides MenuItem.paramString()
      public synchronized void remove(int index);
      public synchronized void remove(MenuComponent item);
1.1  public synchronized void removeAll();
      public void removeNotify();  // Overrides MenuComponent.removeNotify()
}
Extended By:
PopupMenu.
Passed To:
MenuBar.add(), MenuBar.setHelpMenu(), MenuBarPeer.addHelpMenu(), MenuBarPeer.addMenu(), Toolkit.createMenu().
Returned By:
MenuBar.add(), MenuBar.getHelpMenu(), MenuBar.getMenu(), ResourceBundle.getMenu().

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