I want a textfield only to take only letters as input and no numbers. Also i have to use a input verifier how can i achieve that? i have only found on docs on how to verify for a specific word... Also since JTextfield only takes strings i dont know how to make it only accept letters and no numbers.
public class verfifyForLetterOnly extends InputVerifier {
@Override
public boolean verify(JComponent input) {
JTextField tf = (JTextField) input;
if ( ) {
}
return ;
}
}