[Chapter 19] MenuContainer
Author: John Zukowski
Date: Thu Jul 31 15:14:59 1997

#

| Chapter 19 java.awt Reference |

# MenuContainer

## Name

MenuContainer

##

## 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`

MenuComponent |  | MenuItem