Java AWT Checkbox

The Checkbox class is used to create a checkbox. It is used to turn an option on (true) or off (false). Clicking on a Checkbox changes its state from "on" to "off" or from "off" to "on".

AWT Checkbox Class Declaration

public class Checkbox extends Component implements ItemSelectable, Accessible

Java AWT Checkbox Example

Flash Soon


Output:

Java AWT Checkbox Example with ItemListener

Flash Soon


Output:


Advertisement

Copyright ©2017 Design& develop