Javatpoint Logo
Javatpoint Logo

Java AWT CheckboxGroup

The object of CheckboxGroup class is used to group together a set of Checkbox. At a time only one check box button is allowed to be in "on" state and remaining check box button in "off" state. It inherits the object class.

Note: CheckboxGroup enables you to create radio buttons in AWT. There is no special control for creating radio buttons in AWT.

AWT CheckboxGroup Class Declaration

Java AWT CheckboxGroup Example

Output:

java awt checkboxgroup example 1

Java AWT CheckboxGroup Example with ItemListener

Output:

java awt checkboxgroup example 2
Next TopicJava AWT Choice





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA