Java in a Nutshell Online Quick Reference for Java 1.1
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() }