i want to assign a label to the TextField
. I am using the following code
TextField textField = new TextField();
Label label = new Label("Pick a unique username");
textField.setLabelForComponent(label);
textField.setConstraint(TextField.ANY);
form.addComponent(textField);
form.show();
the above code is not showing the associated label for the TextField
. How can it be done ?