| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JCheckBoxMenuItem
A menu item that can be selected or deselected.
|
class |
JMenu
An implementation of a menu -- a popup window containing
JMenuItems that is displayed when the user selects an item on the
JMenuBar.
|
class |
JRadioButtonMenuItem
An implementation of a radio button menu item.
|
| Modifier and Type | Method and Description |
|---|---|
JMenuItem |
JPopupMenu.add(Action
Appends a new menu item to the end of the menu which dispatches the specified
Action object.
|
JMenuItem |
JMenu.add(Action
Creates a new menu item attached to the specified
Action object and appends it to the end of this menu.
|
JMenuItem |
JPopupMenu.add(JMenuItem
Appends the specified menu item to the end of this menu.
|
JMenuItem |
JMenu.add(JMenuItem
Appends a menu item to the end of this menu.
|
JMenuItem |
JPopupMenu.add(String
Creates a new menu item with the specified text and appends it to the end of this menu.
|
JMenuItem |
JMenu.add(String
Creates a new menu item with the specified text and appends it to the end of this menu.
|
protected JMenuItem |
JPopupMenu.createActionComponent(Action
Factory method which creates the
JMenuItem for
Actions added to the
JPopupMenu.
|
protected JMenuItem |
JMenu.createActionComponent(Action
Factory method which creates the
JMenuItem for
Actions added to the
JMenu.
|
JMenuItem |
JMenu.getItem(int pos)
Returns the
JMenuItem at the specified position.
|
JMenuItem |
JMenu.insert(Action
Inserts a new menu item attached to the specified
Action object at a given position.
|
JMenuItem |
JMenu.insert(JMenuItem
Inserts the specified
JMenuitem at a given position.
|
| Modifier and Type | Method and Description |
|---|---|
JMenuItem |
JPopupMenu.add(JMenuItem
Appends the specified menu item to the end of this menu.
|
JMenuItem |
JMenu.add(JMenuItem
Appends a menu item to the end of this menu.
|
protected PropertyChangeListener |
JPopupMenu.createActionChangeListener(JMenuItem
Returns a properly configured
PropertyChangeListener which updates the control as changes to the
Action occur.
|
protected PropertyChangeListener |
JMenu.createActionChangeListener(JMenuItem
Returns a properly configured
PropertyChangeListener which updates the control as changes to the
Action occur.
|
JMenuItem |
JMenu.insert(JMenuItem
Inserts the specified
JMenuitem at a given position.
|
void |
JMenu.remove(JMenuItem
Removes the specified menu item from this menu.
|
| Modifier and Type | Field and Description |
|---|---|
protected JMenuItem |
BasicMenuItemUI.menuItem
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
BasicMenuItemUI.installComponents(JMenuItem
|
protected void |
BasicMenuItemUI.paintBackground(Graphics
Draws the background of the menu item.
|
protected void |
BasicMenuItemUI.paintText(Graphics
Renders the text of the current menu item.
|
void |
BasicCheckBoxMenuItemUI.processMouseEvent(JMenuItem
|
void |
BasicRadioButtonMenuItemUI.processMouseEvent(JMenuItem
|
protected void |
BasicMenuItemUI.uninstallComponents(JMenuItem
|