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

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


CheckBox:-


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.

if(checkboxname.getState())
{

}

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



RadioButton:-


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