java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
public class JMenuItem extends AbstractButton
Constructor Summary |
---|
JMenuItem()
Creates a JMenuItem with no set text or icon. |
JMenuItem(String text)
Creates a JMenuItem with the specified text. |
Method Summary | |
---|---|
void |
setEnabled(boolean b)
Enables or disables the menu item. |