All About INTERFACE CheckboxPeer in AWT in Java

The CheckboxPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Checkbox.
The structure of interface CheckboxPeer is given as:

public interface java.awt.peer.CheckboxPeer extends java.awt.peer.ComponentPeer{
//Methods
public abstract void setCheckboxGroup(CheckboxGroup g);
//sets the group of the checkbox to the specified group.
public abstract void setState(boolean state);
//sets the checkbox to the specified boolean state:true indicates on and false indicates off.
public abstract void setLabel(string label);
//sets the checkbox's label to the specified argument.
}
 
All About INTERFACE CheckboxPeer in AWT in Java All About INTERFACE CheckboxPeer in AWT in Java Reviewed by Animesh Chatterjee on November 01, 2018 Rating: 5

No comments:

Powered by Blogger.