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 class Label extends Component {
// Public Constructors
public Label();
public Label(String text);
public Label(String text, int alignment);
// Constants
public static final int CENTER;
public static final int LEFT;
public static final int RIGHT;
// Public Instance Methods
public void addNotify(); // Overrides Component
public int getAlignment();
public String getText();
public synchronized void setAlignment(int alignment);
public synchronized void setText(String text);
// Protected Instance Methods
protected String paramString(); // Overrides Component
}
Object->Component(ImageObserver, MenuContainer, Serializable)->Label
Toolkit.createLabel()