Packages  This Package  Prev  Next  Index  

§3.16 Interface MenuPeer

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  (II-§3.15)
        // Methods
    public abstract void addItem(MenuItem  item);	§3.16.1
    public abstract void addSeparator();	§3.16.2
    public abstract void delItem(int  index);	§3.16.3



public abstract void addItem(MenuItem item)
Adds the specified menu item to this menu.
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.
index - an index in the menu

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to