Java javax.swing JRadioButtonMenuItem fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JRadioButtonMenuItem fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JRadioButtonMenuItem.

The text is from its open source code.

Constructor

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.

Method

voidaddActionListener(ActionListener l)
Adds an ActionListener to the button.
voidaddChangeListener(ChangeListener l)
Adds a ChangeListener to the button.
voidaddItemListener(ItemListener l)
Adds an ItemListener to the checkbox.
voidaddMenuKeyListener(MenuKeyListener l)
Adds a MenuKeyListener to the menu item.
voiddoClick()
Programmatically perform a "click".
AccessibleContextgetAccessibleContext()
Gets the AccessibleContext associated with this JRadioButtonMenuItem.
ActiongetAction()
Returns the currently set Action for this ActionEvent source, or null if no Action is set.
StringgetActionCommand()
Returns the action command for this button.
ActionListener[]getActionListeners()
Returns an array of all the ActionListeners added to this AbstractButton with addActionListener().
ButtonModelgetModel()
Returns the model that this button represents.
StringgetText()
Returns the button's text.
booleanisSelected()
Returns the state of the button.
voidsetAccelerator(KeyStroke keyStroke)
Sets the key combination which invokes the menu item's action listeners without navigating the menu hierarchy.
voidsetAction(Action a)
Sets the Action.
voidsetActionCommand(String actionCommand)
Sets the action command for this button.
voidsetFont(Font font)
Sets the font for this component.
voidsetHorizontalTextPosition(int textPosition)
Sets the horizontal position of the text relative to the icon.
voidsetMnemonic(int mnemonic)
Sets the keyboard mnemonic on the current model.
voidsetName(String name)
Sets the name of the component to the specified string.
voidsetSelected(boolean b)
Sets the state of the button.
voidsetText(String text)
Sets the button's text.
voidsetToolTipText(String text)
Registers the text to display in a tool tip.