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


Variable Index

 o action

Constructor Index

 o JCheckboxMenuItem()
Creates a checkboxMenuItem with no set text or icon.
 o JCheckboxMenuItem(Icon)
Creates a checkboxMenuItem with an icon.
 o JCheckboxMenuItem(String)
Creates a checkboxMenuItem with text.
 o JCheckboxMenuItem(String, Icon)
Creates a checkboxMenuItem.

Method Index

 o init(String, Icon)
 o requestFocus()
 o setAction(Action)
Sets the action to be involed by the JCheckboxMenuItem
 o setUI(CheckboxMenuItemUI)
Sets the checkboxMenuItem's UI.
 o updateUI()
Gets a new UI object from the default UIFactory.

Variables

 o action
 protected Action action

Constructors

 o JCheckboxMenuItem
 public JCheckboxMenuItem()
Creates a checkboxMenuItem with no set text or icon.

 o JCheckboxMenuItem
 public JCheckboxMenuItem(Icon icon)
Creates a checkboxMenuItem with an icon.

Parameters:
icon - the icon of the CheckboxMenuItem.
 o JCheckboxMenuItem
 public JCheckboxMenuItem(String text)
Creates a checkboxMenuItem with text.

Parameters:
text - the text of the CheckboxMenuItem.
 o JCheckboxMenuItem
 public JCheckboxMenuItem(String text,
                          Icon icon)
Creates a checkboxMenuItem.

Parameters:
text - the text of the CheckboxMenuItem.
icon - the icon of the CheckboxMenuItem.

Methods

 o init
 protected void init(String text,
                     Icon icon)
Overrides:
init in class JMenuItem
 o setUI
 public void setUI(CheckboxMenuItemUI ui)
Sets the checkboxMenuItem's UI.

Parameters:
ui - the new CheckboxMenuItemUI
See Also:
getUI
 o updateUI
 public void updateUI()
Gets a new UI object from the default UIFactory.

Overrides:
updateUI in class JMenuItem
 o setAction
 public void setAction(Action action)
Sets the action to be involed by the JCheckboxMenuItem

Parameters:
action - the Action
Overrides:
setAction in class JMenuItem
 o requestFocus
 public void requestFocus()
Overrides:
requestFocus in class JMenuItem

All Packages  Class Hierarchy  This Package  Previous  Next  Index