• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Validate JTextField to Does not Accept NumberS

 
Behrouz Hosseini
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I am trying to validate a text field to catch exception when a user enters an int(number) type in the name field(JTextField) of my application
Could you please let me know how should I do it?
Could you please give an example of how I can create my own exception class regarding this issue?!

Best Regards,
Behrouz
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!