LabelFormElement class
The
LabelFormElement class represents a label for an HTML form
element. You use the LabelFormElement class to label elements of an
HTML form such as a text area or password form input . The label is one line of
text that you set using the
setLabel() method. This text does not respond to user input and
is there to make the form easier for the user to understand.
The following code example shows you how to create a
LabelFormElement object:
LabelFormElement label = new LabelFormElement("Account Balance");
System.out.println(label.getTag());
This example produces the following output:
Account Balance