| Package | Description |
|---|---|
| java.awt | |
| java.awt.peer |
| Modifier and Type | Class and Description |
|---|---|
class |
CheckboxMenuItem
This class represents a check box that can be included in a menu.
|
class |
Menu
A
Menu object is a pull-down menu component
that is deployed from a menu bar. |
class |
PopupMenu
A class that implements a menu which can be dynamically popped up
at a specified position within a component.
|
| Modifier and Type | Method and Description |
|---|---|
MenuItem |
Menu.add(MenuItem mi)
Adds the specified menu item to this menu.
|
MenuItem |
Menu.getItem(int index)
Gets the item located at the specified index of this menu.
|
MenuItem |
MenuBar.getShortcutMenuItem(MenuShortcut s)
Gets the instance of
MenuItem associated
with the specified MenuShortcut object,
or null if none of the menu items being managed
by this menu bar is associated with the specified menu
shortcut. |
| Modifier and Type | Method and Description |
|---|---|
MenuItem |
Menu.add(MenuItem mi)
Adds the specified menu item to this menu.
|
protected abstract MenuItemPeer |
Toolkit.createMenuItem(MenuItem target)
Creates this toolkit's implementation of
MenuItem using
the specified peer interface. |
void |
Menu.insert(MenuItem menuitem,
int index)
Inserts a menu item into this menu
at the specified position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MenuPeer.addItem(MenuItem item)
Adds the specified menu item to the menu.
|
Generated by SciJava from the sources of OpenJDK 8 (Zulu), which are licensed under the GNU General Public License, version 2, with the Classpath Exception. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.