Package java.awt.peer Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface LabelPeer

Methods

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);	
}


Methods


setAlignment

public abstract void setAlignment(int  alignment) 

Sets the alignment for this label to the specified alignment.

ParameterDescription
alignment the alignment value


setText

public abstract void setText(String  label) 

Sets the text for this label to the specified text.

ParameterDescription
label the text that makes up the label



Top© 1996 Sun Microsystems, Inc. All rights reserved.