Module java.desktop
Package java.awt

Interface MenuContainer

    • Method Summary

      Modifier and Type Method Description
      Font getFont()
      Returns the font in use by this container.
      boolean postEvent​(Event evt)
      Deprecated.
      As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).
      void remove​(MenuComponent comp)
      Removes the specified menu component from the menu.
    • Method Detail

      • getFont

        Font getFont()
        Returns the font in use by this container.
        Returns:
        the menu font
      • remove

        void remove​(MenuComponent comp)
        Removes the specified menu component from the menu.
        Parameters:
        comp - the menu component to remove
      • postEvent

        @Deprecated
        boolean postEvent​(Event evt)
        Deprecated.
        As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).
        Posts an event to the listeners.
        Parameters:
        evt - the event to dispatch
        Returns:
        the results of posting the event