CheckboxGroup

Name

CheckboxGroup

[Graphic: Figure from the text]

Description

The CheckboxGroup class provides the means to group multiple Checkbox items into a mutual exclusion set, so that only one checkbox in the set has the value true at any time. The checkbox with the value true is the currently selected checkbox. Mutually exclusive checkboxes usually have a different appearance from regular checkboxes and are also called "radio buttons."

Class Definition

public class java.awt.CheckboxGroup extends java.lang.Object implements java.io.Serializable {
 // Constructors public CheckboxGroup(); // Instance Methods public Checkbox getCurrent(); (Deprecated) public Checkbox getSelectedCheckbox() public synchronized void setCurrent (Checkbox checkbox); (Deprecated) public synchronized void setSelectedCheckbox (Checkbox checkbox); public String toString();
}

Constructors

CheckboxGroup

public CheckboxGroup()

Instance Methods

getCurrent

public Checkbox getCurrent() (Deprecated)

getSelectedCheckbox

public Checkbox getSelectedCheckbox()

setCurrent

public synchronized void setCurrent (Checkbox checkbox) (Deprecated)

setSelectedCheckbox

public synchronized void setSelectedCheckbox (Checkbox checkbox)

toString

public String toString()

See Also

Checkbox, Object, String