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.
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.
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.
Note: postEvent() is deprecated.As of JDK version 1.1,
replaced by dispatchEvent(AWTEvent).
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.