How to validate if a text field is numeric in Java? I have validations for textfields that receive Strings, and it warns me when it's empty.
boolean Valida(){
if(txtRFC.getText().equals("")){
javax.swing.JOptionPane.showMessageDialog(this, "Llene todos los campos");
return true;
}
return false;
}//Validaciones
How do I do it this way, but limiting the field to Integers?