All About INTERFACE LabelPeer in AWT in Java

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

public interface java.awt.peer.LabelPeer extends java.awt.peer.ComponentPeer{
//Methods
public abstract void setAlignment(int alignment);
//sets the alignment for this label to the specified alignment.
public abstract void setText(String label);
//sets the text for this label to the specified text.
}
 
All About INTERFACE LabelPeer in AWT in Java All About INTERFACE LabelPeer in AWT in Java Reviewed by Animesh Chatterjee on November 02, 2018 Rating: 5

No comments:

Powered by Blogger.