Constructs a Label with no initial text.
Use this constructor with no arguments to create an empty Label.
text | The initial text to be displayed in the Label. |
Constructs a Label displaying the specified text.
Use the text
parameter to create a Label with the specified value as the initial text.