Label.Label
Class Overview | Class Members |
This Package |
All Packages
public Label()
Description
Constructs an empty label.
public Label( String text )
Parameters
- text
- the string that the label presents.
Description
Constructs a new label with the specified string of text,
left justified.
public Label( String text,
int alignment )
Parameters
- text
- the string that the label presents.
- alignment
- the alignment value.
Description
Constructs a new label that presents the specified string of
text with the specified alignment.
Possible values for alignment are Label.LEFT,
Label.RIGHT, and Label.CENTER.