Example usage for Java javax.swing JRadioButtonMenuItem fields, constructors, methods, implement or subclass
The text is from its open source code.
JRadioButtonMenuItem(Icon icon) Creates a JRadioButtonMenuItem with an icon. | |
JRadioButtonMenuItem(String text) Creates a JRadioButtonMenuItem with text. | |
JRadioButtonMenuItem(Action a) Creates a radio button menu item whose properties are taken from the Action supplied. | |
JRadioButtonMenuItem(String text, Icon icon) Creates a radio button menu item with the specified text and Icon . | |
JRadioButtonMenuItem(String text, boolean selected) Creates a radio button menu item with the specified text and selection state. | |
JRadioButtonMenuItem(Icon icon, boolean selected) Creates a radio button menu item with the specified image and selection state, but no text. | |
JRadioButtonMenuItem() Creates a JRadioButtonMenuItem with no set text or icon. |
void | addActionListener(ActionListener l) Adds an ActionListener to the button. |
void | addChangeListener(ChangeListener l) Adds a ChangeListener to the button. |
void | addItemListener(ItemListener l) Adds an ItemListener to the checkbox . |
void | addMenuKeyListener(MenuKeyListener l) Adds a MenuKeyListener to the menu item. |
void | doClick() Programmatically perform a "click". |
AccessibleContext | getAccessibleContext() Gets the AccessibleContext associated with this JRadioButtonMenuItem. |
Action | getAction() Returns the currently set Action for this ActionEvent source, or null if no Action is set. |
String | getActionCommand() Returns the action command for this button. |
ActionListener[] | getActionListeners() Returns an array of all the ActionListener s added to this AbstractButton with addActionListener(). |
ButtonModel | getModel() Returns the model that this button represents. |
String | getText() Returns the button's text. |
boolean | isSelected() Returns the state of the button. |
void | setAccelerator(KeyStroke keyStroke) Sets the key combination which invokes the menu item's action listeners without navigating the menu hierarchy. |
void | setAction(Action a) Sets the Action . |
void | setActionCommand(String actionCommand) Sets the action command for this button. |
void | setFont(Font font) Sets the font for this component. |
void | setHorizontalTextPosition(int textPosition) Sets the horizontal position of the text relative to the icon. |
void | setMnemonic(int mnemonic) Sets the keyboard mnemonic on the current model. |
void | setName(String name) Sets the name of the component to the specified string. |
void | setSelected(boolean b) Sets the state of the button. |
void | setText(String text) Sets the button's text. |
void | setToolTipText(String text) Registers the text to display in a tool tip. |