All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JCheckboxMenuItem
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JMenuItem
|
+----com.sun.java.swing.JCheckboxMenuItem
- public class JCheckboxMenuItem
- extends JMenuItem
An implementation of a CheckboxMenuItem
-
action
-
-
JCheckboxMenuItem()
- Creates a checkboxMenuItem with no set text or icon.
-
JCheckboxMenuItem(Icon)
- Creates a checkboxMenuItem with an icon.
-
JCheckboxMenuItem(String)
- Creates a checkboxMenuItem with text.
-
JCheckboxMenuItem(String, Icon)
- Creates a checkboxMenuItem.
-
init(String, Icon)
-
-
requestFocus()
-
-
setAction(Action)
- Sets the action to be involed by the JCheckboxMenuItem
-
setUI(CheckboxMenuItemUI)
- Sets the checkboxMenuItem's UI.
-
updateUI()
- Gets a new UI object from the default UIFactory.
action
protected Action action
JCheckboxMenuItem
public JCheckboxMenuItem()
- Creates a checkboxMenuItem with no set text or icon.
JCheckboxMenuItem
public JCheckboxMenuItem(Icon icon)
- Creates a checkboxMenuItem with an icon.
- Parameters:
- icon - the icon of the CheckboxMenuItem.
JCheckboxMenuItem
public JCheckboxMenuItem(String text)
- Creates a checkboxMenuItem with text.
- Parameters:
- text - the text of the CheckboxMenuItem.
JCheckboxMenuItem
public JCheckboxMenuItem(String text,
Icon icon)
- Creates a checkboxMenuItem.
- Parameters:
- text - the text of the CheckboxMenuItem.
- icon - the icon of the CheckboxMenuItem.
init
protected void init(String text,
Icon icon)
- Overrides:
- init in class JMenuItem
setUI
public void setUI(CheckboxMenuItemUI ui)
- Sets the checkboxMenuItem's UI.
- Parameters:
- ui - the new CheckboxMenuItemUI
- See Also:
- getUI
updateUI
public void updateUI()
- Gets a new UI object from the default UIFactory.
- Overrides:
- updateUI in class JMenuItem
setAction
public void setAction(Action action)
- Sets the action to be involed by the JCheckboxMenuItem
- Parameters:
- action - the Action
- Overrides:
- setAction in class JMenuItem
requestFocus
public void requestFocus()
- Overrides:
- requestFocus in class JMenuItem
All Packages Class Hierarchy This Package Previous Next Index