Module java.desktop
Package java.awt

Interface MenuContainer

    • 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