start page | rating of books | rating of authors | reviews | copyrights

Java AWT

Previous Chapter 23
java.awt.peer Reference
Next
 

MenuBarPeer

Name

MenuBarPeer

[Graphic: Figure from the text]

Description

MenuBarPeer is an interface that defines the basis for menu bars.

Interface Definition

public abstract interface java.awt.peer.MenuBarPeer
   extends java.awt.peer.MenuComponentPeer {
  // Interface Methods
  public abstract void addHelpMenu (Menu m);
  public abstract void addMenu (Menu m);
  public abstract void delMenu (int index);
}

Interface Methods

addHelpMenu

public abstract void addHelpMenu (Menu m)

Parameters

m

Menu to designate as the help menu with the menu bar's peer.

Description

Sets a particular menu to be the help menu of the menu bar's peer.

addMenu

public abstract void addMenu (Menu m)

Parameters

m

Menu to add to the menu bar's peer

Description

Adds a menu to the menu bar's peer.

delMenu

public abstract void delMenu (int index)

Parameters

index

Menu position to delete from the menu bar's peer.

Description

Deletes a menu from the menu bar's peer.

See Also

Menu, MenuComponentPeer


Previous Home Next
ListPeer Book Index MenuComponentPeer

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java