APIdia Launch Partner
Top Description Methods
java.awt.peer

public Interface MenuBarPeer

extends MenuComponentPeer
Known Direct Implementers
sun.awt.X11.XMenuBarPeer
Imports
java.awt.Menu, .MenuBar

The peer interface for MenuBar. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Method Summary

Modifier and TypeMethod and Description
public void
addHelpMenu(Menu
the help menu to add
m
)

Adds a help menu to the menu bar.

public void
addMenu(Menu
the menu to add
m
)

Adds a menu to the menu bar.

public void
delMenu(int
the index of the menu to remove
index
)

Deletes a menu from the menu bar.

Inherited from java.awt.peer.MenuComponentPeer:
disposesetFont

Method Detail

addHelpMenuback to summary
public void addHelpMenu(Menu m)

Adds a help menu to the menu bar.

Parameters
m:Menu

the help menu to add

See Also
MenuBar#setHelpMenu(Menu)
addMenuback to summary
public void addMenu(Menu m)

Adds a menu to the menu bar.

Parameters
m:Menu

the menu to add

See Also
MenuBar#add(Menu)
delMenuback to summary
public void delMenu(int index)

Deletes a menu from the menu bar.

Parameters
index:int

the index of the menu to remove

See Also
MenuBar#remove(int)