Im working on a school project and i'm trying to check in GWT if a textbox i create is empty or not. I have done the exact same thing on another project and there it worked fine. i have searched for the answer here and on google but couldn't find any answer.
voornaamTB = new TextBox();
voornaamTB.setText(null);
ok.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if (voornaamTB != null) {
System.out.println("not empty");
} else {
System.out.println("empty");
}
}
});