The abstract class MenuComponent is the superclass
of all menu-related components. In this respect, the class
MenuComponent is analogous to the abstract superclass
Component for AWT components.
Menu components receive and process AWT events, just as components do,
through the method processEvent.
version: 1.35, 06/12/02 author: Arthur van Hoff since: JDK1.0
getTreeLock() Gets this component's locking object (the object that owns the thread
sychronization monitor) for AWT component-tree and layout
operations.
Gets the font used for this menu component.
the font used in this menu component, if there is one;null otherwise. See Also:java.awt.MenuComponent.setFont since: JDK1.0
Returns the parent container for this menu component.
the menu component containing this menu component,or null if this menu componentis the outermost component, the menu bar itself. since: JDK1.0
Gets this component's locking object (the object that owns the thread
sychronization monitor) for AWT component-tree and layout
operations.
This component's locking object.
Returns the parameter string representing the state of this
menu component. This string is useful for debugging.
the parameter string of this menu component. since: JDK1.0
Posts the specified event to the menu.
This method is part of the Java 1.0 event system
and it is maintained only for backwards compatibility.
Its use is discouraged, and it may not be supported
in the future.
Parameters: evt - the event which is to take place since: JDK1.0
Removes the menu component's peer. The peer allows us to modify the
appearance of the menu component without changing the functionality of
the menu component.
Sets the font to be used for this menu component to the specified
font. This font is also used by all subcomponents of this menu
component, unless those subcomponents specify a different font.
Parameters: f - the font to be set. See Also:java.awt.MenuComponent.getFont since: JDK1.0
Sets the name of the component to the specified string.
Parameters: name - the name of the menu component. See Also:java.awt.MenuComponent.getName since: JDK1.1