JMenuItem
- class javax.swing..JMenuItem public class JMenuItem extends AbstractButton implements Accessible , MenuElement Tree:java.lang.Object - java.awt.Component - java.awt.Container - javax.swing.JComponent - javax.swing.AbstractButton - javax.swing.JMenuItem An implementation of a MenuItem. A menu item is essentially a button sitting in a list. When the user selects the "button", the action associated with the menu item is performed. A JMenuItem contained in a JPopupMenu performs exactly that function. JMenuItem() - Constructor for class javax.swing.JMenuItem public JMenuItem () Creates a menuItem with no set text or icon. JMenuItem(Icon) - Constructor for class javax.swing.JMenuItem public JMenuItem (Icon icon) Creates a menuItem with an icon.Parameters: icon - the icon of the MenuItem. JMenuItem(String) - Constructor for class javax.swing.JMenuItem public JMenuItem (String text) Creates a menuItem with text.Parameters: text - the text of the MenuItem. JMenuItem(String, Icon) - Constructor for class javax.swing.JMenuItem public JMenuItem (String text, Icon icon) Creates a menuItem with the supplied text and icon.Parameters: text - the text of the MenuItem. - the icon of the MenuItem.icon - the icon of the MenuItem. JMenuItem(String, int) - Constructor for class javax.swing.JMenuItem public JMenuItem (String text, int mnemonic) Creates a menuItem with the specified text and keyboard mnemonic.Parameters: text - the text of the MenuItem. - the keyboard mnemonic for the MenuItemmnemonic - the keyboard mnemonic for the MenuItem | ||||
Search Dictionary:
