14.03.2018 Views

AWT Tutorialspoint Simply Esay Learning

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>AWT</strong><br />

Output:<br />

<strong>AWT</strong> CheckBox Class<br />

Checkbox control is used to turn an option on(true) or off(false). There is label for<br />

each checkbox representing what the checkbox does. The state of a checkbox can<br />

be changed by clicking on it.<br />

Class Declaration<br />

Following is the declaration for java.awt.Checkbox class:<br />

public class Checkbox<br />

extends Component<br />

implements ItemSelectable,Accessible<br />

Class Constructors<br />

S.N.<br />

Constructor & Description<br />

Checkbox()<br />

1<br />

Creates a check box with an empty string for its label.<br />

Checkbox(String label)<br />

2<br />

Creates a check box with the specified label.<br />

3 Checkbox(String label, boolean state)<br />

29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!