I have a First name Text field.I want to make this text field to accept only characters. How to make this text field to restrict accepting numbers and special characters.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35221
7
posted
0
Assuming you're talking about a Swing application, have a look at this code example. It shows how to allow digits only. From that it should be easy to adapt it to your purposes.