Label.Label

Label.Label

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Label()
Description
Constructs an empty label.



Syntax 2
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.



Syntax 3
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.