Package java.awt.peer Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface MenuBarPeer

Methods

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  
{
        // Methods
    public abstract void addHelpMenu(Menu  m);	
    public abstract void addMenu(Menu  m);	
    public abstract void delMenu(int  index);	
}


Methods


addHelpMenu

public abstract void addHelpMenu(Menu  m) 

Sets the help menu on the menu bar to be the specified menu.

ParameterDescription
m the help menu


addMenu

public abstract void addMenu(Menu  m) 

Adds the specified menu to the menu bar.

ParameterDescription
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.

ParameterDescription
index the position of the menu to be removed



Top© 1996 Sun Microsystems, Inc. All rights reserved.