I am very very new to java programming.
I have already built a swing desktop application which takes as input the following:
1. First name
2. Second name
3. Social Security Number:
I have built my appication using JFrame. I want to add client side validation to my application.
First and lastname should accept only string value and Social Security number should accept only numbers and should be of length 10 digits. I want that after pressing the 'Submit' button , the user input should be validated and the validation error message should be displayed as a validation summary or beside the textbox control.
I also want to add required field validator. The Social security number should be a required field.
I do not know how to implement validation in java.
Providing sample code will be the best help possible.