I'm creating a GUI for a club and am trying to set up a test so that when a new user is prompted to input their name, they will not be able to input any numeric values.
Here is the code I have so far:
else if((this.jTextFieldName.getText() ){
errorMessage = "Name is not acceptable";
this.jTextFieldNameActionPerformed(requestFocusInWindow());
}
The space after getText() in the first line is where I need to input a test but I can't find a way to do this that works. Can anyone help?