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

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

Introduction

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

The text is from its open source code.

Constructor

ButtonGroup()
Creates a new ButtonGroup.

Method

voidadd(AbstractButton b)
Adds the button to the group.
voidclearSelection()
Clears the selection such that none of the buttons in the ButtonGroup are selected.
intgetButtonCount()
Returns the number of buttons in the group.
EnumerationgetElements()
Returns all the buttons that are participating in this group.
ButtonModelgetSelection()
Returns the model of the selected button.
booleanisSelected(ButtonModel m)
Returns whether a ButtonModel is selected.
voidremove(AbstractButton b)
Removes the button from the group.
voidsetSelected(ButtonModel m, boolean b)
Sets the selected value for the ButtonModel.