I have this class for an input text box:
class InputTextBox extends FlowPanel {
public InputTextBox(String labelText) {
super();
Label label = new Label(labelText);
TextBox input = new TextBox();
this.add(label);
this.add(input);
this.addStyleName("myBox");
}
}
How to set focus on this text field, so when onmoduleload is called the cursor, appears in the text field? Adding a member function seems to cause a lot of errors.
public void setFocus(boolean b) {
this.setFocus(b);
}
source
share