Java AWT

Previous Chapter 19
java.awt Reference
Next
 

MenuContainer

Name

MenuContainer

[Graphic: Figure from the text]

Description

MenuContainer is an interface that defines the responsibilities for objects that can have a menu.

Interface Definition

public abstract interface java.awt.MenuContainer
    extends java.lang.Object {
  
  // Interface Methods
  public abstract Font getFont();
  public abstract boolean postEvent (Event e);
  public abstract void remove (MenuComponent component);
}

Interface Methods

getFont

public abstract Font getFont()

Returns

Current font of the object implementing this method.

postEvent

public abstract boolean postEvent (Event e)

Parameters

e

Event to post.

Returns

Ignores return value.

Description

Posts event to the object implementing this method.

remove

public abstract void remove (MenuComponent component)

Parameters

component

Menu object to remove

Description

Tells the object implementing this method to remove a menu component.

See Also

Event, Font, Frame, Menu, MenuBar, MenuComponent, Object


Previous Home Next
MenuComponent Book Index MenuItem

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.