Package java.awt.peer |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
The label peer interface specifies the methods that all implementations of Abstract Window Toolkit label must define.
public interface java.awt.peer.LabelPeer extends java.awt.peer.ComponentPeer { // Methods public abstract void setAlignment(int alignment); public abstract void setText(String label); }
public abstract void setAlignment(int alignment)Sets the alignment for this label to the specified alignment.
Parameter Description alignment the alignment value
public abstract void setText(String label)Sets the text for this label to the specified text.
Parameter Description label the text that makes up the label