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
}
addHelpMenu
public abstract void addHelpMenu(Menu m)
- Sets the help menu on the menu bar to be the specified menu.
- Parameters:
m
- the help menu
addMenu
public abstract void addMenu(Menu m)
- Adds the specified menu to the menu bar.
- Parameters:
m
- the menu to be added
delMenu
public abstract void delMenu(int index)
- Removes the menu located at the specified index from the menu bar.
- Parameters:
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 doug.kramer@sun.com