java.awt.Label (JDK 1.0)
This class is a Component that displays a single specified line of read-only text. The constant values specify the text alignment within the component and may be specified to the constructor or to setAlignment().
public classLabelextends Component { //Public ConstructorspublicLabel(); publicLabel(Stringtext); publicLabel(Stringtext, intalignment); //Constantspublic static final intCENTER; public static final intLEFT; public static final intRIGHT; //Public Instance Methodspublic voidaddNotify(); //Overrides Componentpublic intgetAlignment(); public StringgetText(); public synchronized voidsetAlignment(intalignment); public synchronized voidsetText(Stringtext); //Protected Instance Methodsprotected StringparamString(); //Overrides Component}
Hierarchy:
Object->Component(ImageObserver, MenuContainer, Serializable)->Label
Passed To:
Toolkit.createLabel()