Answers for "how to accept only numbers and whitespace in java"

0

how to accept only numbers and whitespace in java

char text_in_patient_contact = evt.getKeyChar();
        if (Character.isDigit(text_in_patient_contact)||Character.isISOControl(text_in_patient_contact)) {
            medicine_name_input.requestFocus();
            patient_input_error.setText("");
        }
        else{
             patient_input_error.setText("Worong Phone");
        }
Posted by: Guest on July-14-2021

Code answers related to "how to accept only numbers and whitespace in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language