Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"


It is used to choose multiple options in a group of options.

getState():-  it will return true if the checkbox will be checked and return false if the checkbox will be unchecked.



getLabel():-  it is used to display content of CheckBox means if we write CheckBox Label Java then getLabel() will return Java.


AWT does not provide any classes for RadioButton We can convert CheckBox to RadioButton using

CheckboxGroup Class.

CheckboxGroup grp = new CheckboxGroup();
Checkbox ch = new Checkbox(label,grp,true);

Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post