Java in a Nutshell

Previous Chapter 18
The java.awt Package
Next
 

18.43 java.awt.MenuContainer (JDK 1.0)

This interface defines the methods necessary for MenuContainer types such as the Menu, Frame, and MenuBar objects. Unless you implement new menu-like components, you never need to use it.

public abstract interface MenuContainer {
    // Public Instance Methods
            public abstract Font getFont();
            public abstract boolean postEvent(Event evt);
            public abstract void remove(MenuComponent comp);
}

Implemented By:

Component, Frame, Menu, MenuBar

Returned By:

MenuComponent.getParent()


Previous Home Next
java.awt.MenuComponent (JDK 1.0) Book Index java.awt.MenuItem (JDK 1.0)

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