LabelNameLabel
DescriptionThe Label is a Component that displays a single line of static text. Class Definition
public class java.awt.Label extends java.awt.Component { // Constants public static final int CENTER; public static final int LEFT; public static final int RIGHT; // Constructors public Label(); public Label (String label); public Label (String label, int alignment); // Instance Methods public void addNotify(); public int getAlignment(); public String getText(); public synchronized void setAlignment (int alignment); public synchronized void setText (String label); // Protected Instance Methods protected String paramString(); } ConstantsCENTERpublic static final int CENTER
LEFTpublic static final int LEFT
RIGHTpublic static final int RIGHT
ConstructorsLabelpublic Label()
public Label (String label)
public Label (String label, int alignment)
Instance MethodsaddNotifypublic void addNotify()
getAlignmentpublic int getAlignment()
getTextpublic String getText()
setAlignmentpublic synchronized void setAlignment (int alignment)
setTextpublic synchronized void setText (String label)
Protected Instance MethodsparamStringprotected String paramString()
See AlsoComponent, String |
|