| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CheckboxMenuItemThis class represents a check box that can be included in a menu. | 
| class  | MenuA  Menuobject is a pull-down menu component
 that is deployed from a menu bar. | 
| class  | MenuBarThe  MenuBarclass encapsulates the platform's
 concept of a menu bar bound to a frame. | 
| class  | MenuItemAll items in a menu must belong to the class
  MenuItem, or one of its subclasses. | 
| class  | PopupMenuA class that implements a menu which can be dynamically popped up
 at a specified position within a component. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | MenuBar. remove(MenuComponent m)Removes the specified menu component from this menu bar. | 
| void | Menu. remove(MenuComponent item)Removes the specified menu item from this menu. | 
| void | Frame. remove(MenuComponent m)Removes the specified menu bar from this frame. | 
| void | MenuContainer. remove(MenuComponent comp) | 
| void | Component. remove(MenuComponent popup)Removes the specified popup menu from the component. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.