Question: how to use jcheckbox in java?
Answer: JCheckBox() : creates a new checkbox with no text or icon.
JCheckBox(Icon i) : creates a new checkbox with the icon specified.
JCheckBox(Icon icon, boolean s) : creates a new checkbox with the icon specified and the boolean value specifies whether it is selected or not.