Packages  This Package  Prev  Next  Index  

§3.13 Interface MenuBarPeer

The menu bar peer interface specifies the methods that all implementations of Abstract Window Toolkit menu bars must define.

public  interface  java.awt.peer.MenuBarPeer
    extends java.awt.peer.MenuComponentPeer  (II-§3.14)
        // Methods
    public abstract void addHelpMenu(Menu  m);	§3.13.1
    public abstract void addMenu(Menu  m);	§3.13.2
    public abstract void delMenu(int  index);	§3.13.3



public abstract void addHelpMenu(Menu m)
Sets the help menu on the menu bar to be the specified menu.
m - the help menu


public abstract void addMenu(Menu m)
Adds the specified menu to the menu bar.
m - the menu to be added


public abstract void delMenu(int index)
Removes the menu located at the specified index from the menu bar.
index - the position of the menu to be removed

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