< prev index next >

src/java.desktop/share/classes/java/awt/MenuContainer.java

Print this page




  33 public interface MenuContainer {
  34 
  35     /**
  36      * Returns the font in use by this container.
  37      *
  38      * @return the menu font
  39      */
  40     Font getFont();
  41 
  42     /**
  43      * Removes the specified menu component from the menu.
  44      *
  45      * @param  comp the menu component to remove
  46      */
  47     void remove(MenuComponent comp);
  48 
  49     /**
  50      * Posts an event to the listeners.
  51      *
  52      * @param  evt the event to dispatch

  53      * @deprecated As of JDK version 1.1
  54      * replaced by dispatchEvent(AWTEvent).
  55      */
  56     @Deprecated
  57     boolean postEvent(Event evt);
  58 }


  33 public interface MenuContainer {
  34 
  35     /**
  36      * Returns the font in use by this container.
  37      *
  38      * @return the menu font
  39      */
  40     Font getFont();
  41 
  42     /**
  43      * Removes the specified menu component from the menu.
  44      *
  45      * @param  comp the menu component to remove
  46      */
  47     void remove(MenuComponent comp);
  48 
  49     /**
  50      * Posts an event to the listeners.
  51      *
  52      * @param  evt the event to dispatch
  53      * @return the results of posting the event
  54      * @deprecated As of JDK version 1.1
  55      * replaced by dispatchEvent(AWTEvent).
  56      */
  57     @Deprecated
  58     boolean postEvent(Event evt);
  59 }
< prev index next >