The TextFormInput class represents a single line text input type in an HTML form. The TextFormInput class provides methods that let you get and set the maximum number of characters a user can enter in the text field.
TextFormInput text = new TextFormInput("userID");
text.setSize(40);
System.out.println(text.getTag());
<input type="text" name="userID" size="40" />