Packages  This Package  Prev  Next  Index  

§3.11 Interface LabelPeer

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  (II-§3.6)
{
        // Methods
    public abstract void setAlignment(int  alignment);	§3.11.1
    public abstract void setText(String  label);	§3.11.2
}

Methods

setAlignment

public abstract void setAlignment(int alignment)
Sets the alignment for this label to the specified alignment.
Parameters:
alignment - the alignment value

setText

public abstract void setText(String label)
Sets the text for this label to the specified text.
Parameters:
label - the text that makes up the label

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com