Uses of Class
javax.swing.JMenuItem
Packages that use 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
Subclasses of JMenuItem in javax.swingModifier and TypeClassDescriptionclassA menu item that can be selected or deselected.classAn implementation of a menu -- a popup window containingJMenuItems that is displayed when the user selects an item on theJMenuBar.classAn implementation of a radio button menu item.Methods in javax.swing that return JMenuItemModifier 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 specifiedActionobject 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 specifiedActionobject.Appends the specified menu item to the end of this menu.protected JMenuItemJMenu.createActionComponent(Action a) Factory method which creates theJMenuItemforActions added to theJMenu.protected JMenuItemJPopupMenu.createActionComponent(Action a) Factory method which creates theJMenuItemforActionsadded to theJPopupMenu.JMenu.getItem(int pos) Returns theJMenuItemat the specified position.Inserts a new menu item attached to the specifiedActionobject at a given position.Inserts the specifiedJMenuitemat a given position.Methods in javax.swing with parameters of type JMenuItemModifier and TypeMethodDescriptionAppends a menu item to the end of this menu.Appends the specified menu item to the end of this menu.protected PropertyChangeListenerJMenu.createActionChangeListener(JMenuItem b) Returns a properly configuredPropertyChangeListenerwhich updates the control as changes to theActionoccur.protected PropertyChangeListenerJPopupMenu.createActionChangeListener(JMenuItem b) Returns a properly configuredPropertyChangeListenerwhich updates the control as changes to theActionoccur.Inserts the specifiedJMenuitemat a given position.voidRemoves the specified menu item from this menu. -
Uses of JMenuItem in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as JMenuItemModifier and TypeFieldDescriptionprotected JMenuItemBasicMenuItemUI.menuItemThe instance ofJMenuItem.Methods in javax.swing.plaf.basic with parameters of type JMenuItemModifier and TypeMethodDescriptionprotected voidBasicMenuItemUI.installComponents(JMenuItem menuItem) Registers the subcomponents of the menu.protected voidBasicMenuItemUI.paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected voidRenders the text of the current menu item.voidBasicCheckBoxMenuItemUI.processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs.voidBasicRadioButtonMenuItemUI.processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) Invoked when mouse event occurs.protected voidBasicMenuItemUI.uninstallComponents(JMenuItem menuItem) Unregisters components.