home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Java AWT

Previous Chapter 23
java.awt.peer Reference
Next
 

LabelPeer

Name

LabelPeer

[Graphic: Figure from the text]

Description

LabelPeer is an interface that defines the basis for label components.

Interface Definition

public abstract interface java.awt.peer.LabelPeer
   extends java.awt.peer.ComponentPeer {
  // Interface Methods
  public abstract void setAlignment (int alignment);
  public abstract void setText (String label);
}

Interface Methods

setAlignment

public abstract void setAlignment (int alignment)

Parameters

alignment

New alignment for label's peer.

Description

Changes the current alignment of label's peer.

setText

public abstract void setText (String label)

Parameters

label

New text for label's peer.

Description

Changes the current text of label's peer.

See Also

ComponentPeer, String


Previous Home Next
FramePeer Book Index LightweightPeer (New)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java