Package java.awt.peer |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
The check box peer interface specifies the methods that all implementations of Abstract Window Toolkit check boxes must define.
public interface java.awt.peer.CheckboxPeer extends java.awt.peer.ComponentPeer { // Methods public abstract void setCheckboxGroup(CheckboxGroup g); public abstract void setLabel(String label); public abstract void setState(boolean state); }
public abstract void setCheckboxGroup(CheckboxGroup g)Sets the group of the checkbox to be the specified CheckboxGroup
Parameter Description g the new check box group, or null to remove the check box from any checkbox group
public abstract void setLabel(String label)Changes the check box's label to be the string argument.
Parameter Description label the new label, or null for no label
public abstract void setState(boolean state)Sets the check box to the specifed boolean state: true indicates "on"; false indicates "off."
Parameter Description state the boolean state