| Package java.awt.peer |
Previous |
Java API |
Index |
Next |
The menu peer interface specifies the methods that all implementations of Abstract Window Toolkit menus must define.
public interface java.awt.peer.MenuPeer
extends java.awt.peer.MenuItemPeer
{
// Methods
public abstract void addItem(MenuItem item);
public abstract void addSeparator();
public abstract void delItem(int index);
}
public abstract void addItem(MenuItem item)Adds the specified menu item to this menu.
Parameter Description item the menu item to be added
public abstract void addSeparator()Adds a separator line to this menu.
public abstract void delItem(int index)Deletes the item at the specified index from this menu.
Parameter Description index an index in the menu
| © 1996 Sun Microsystems, Inc. All rights reserved. |