Uses of Class
javax.swing.JMenuItem
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides user interface objects built according to the Basic look and feel.
-
Uses of JMenuItem in javax.swing
Modifier and TypeClassDescriptionclass
A menu item that can be selected or deselected.class
An implementation of a menu -- a popup window containingJMenuItem
s that is displayed when the user selects an item on theJMenuBar
.class
An implementation of a radio button menu item.Modifier and TypeMethodDescriptionCreates a new menu item with the specified text and appends it to the end of this menu.Creates a new menu item attached to the specifiedAction
object and appends it to the end of this menu.Appends a menu item to the end of this menu.Creates a new menu item with the specified text and appends it to the end of this menu.Appends a new menu item to the end of the menu which dispatches the specifiedAction
object.Appends the specified menu item to the end of this menu.protected JMenuItem
JMenu.createActionComponent
(Action a) Factory method which creates theJMenuItem
forAction
s added to theJMenu
.protected JMenuItem
JPopupMenu.createActionComponent
(Action a) Factory method which creates theJMenuItem
forActions
added to theJPopupMenu
.JMenu.getItem
(int pos) Returns theJMenuItem
at the specified position.Inserts a new menu item attached to the specifiedAction
object at a given position.Inserts the specifiedJMenuitem
at a given position.Modifier and TypeMethodDescriptionAppends a menu item to the end of this menu.Appends the specified menu item to the end of this menu.protected PropertyChangeListener
JMenu.createActionChangeListener
(JMenuItem b) Returns a properly configuredPropertyChangeListener
which updates the control as changes to theAction
occur.protected PropertyChangeListener
JPopupMenu.createActionChangeListener
(JMenuItem b) Returns a properly configuredPropertyChangeListener
which updates the control as changes to theAction
occur.Inserts the specifiedJMenuitem
at a given position.void
Removes the specified menu item from this menu. -
Uses of JMenuItem in javax.swing.plaf.basic
Modifier and TypeFieldDescriptionprotected JMenuItem
BasicMenuItemUI.menuItem
The instance ofJMenuItem
.Modifier and TypeMethodDescriptionprotected void
BasicMenuItemUI.installComponents
(JMenuItem menuItem) Registers the subcomponents of the menu.protected void
BasicMenuItemUI.paintBackground
(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected void
Renders the text of the current menu item.void
BasicCheckBoxMenuItemUI.processMouseEvent
(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs.void
BasicRadioButtonMenuItemUI.processMouseEvent
(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs.protected void
BasicMenuItemUI.uninstallComponents
(JMenuItem menuItem) Unregisters components.