charvax.swing
Class JMenuItem
- EventListener, ItemSelectable, KeyListener
An implementation of an item in a menu.
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT, _alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible |
JMenuItem()- Create a menu item without text.
|
JMenuItem(String text_)- Create a menu item with the specified text.
|
JMenuItem(String text_, int mnemonic_)- Create a menu item with the specified text and the specified
mnemonic.
|
addActionListener, addItemListener, doClick, fireActionPerformed, fireItemStateChanged, getActionCommand, getLabel, getLabelString, getMnemonic, getText, isSelected, keyPressed, keyReleased, keyTyped, processEvent, processMouseEvent, removeItemListener, setActionCommand, setLabel, setMnemonic, setSelected, setText |
addFocusListener, addKeyListener, contains, contains, debug, draw, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getHeight, getLocation, getLocationOnScreen, getName, getParent, getSize, getWidth, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isTotallyObscured, isValid, isVisible, minimumSize, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestFocus, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor |
JMenuItem
public JMenuItem()
Create a menu item without text.
JMenuItem
public JMenuItem(String text_)
Create a menu item with the specified text.
JMenuItem
public JMenuItem(String text_,
int mnemonic_) Create a menu item with the specified text and the specified
mnemonic.
text_ - the label to be displayed in this menu item.mnemonic_ - an ASCII character. The first occurrence of
this character in the text label will be shown underlined; and
pressing this key will invoke the menu item.
debug
public void debug(int level_)
Outputs a textual description of this component to stderr.
- debug in interface Component
toString
public String toString()