• Post Reply Bookmark Topic Watch Topic
  • New Topic

Formatted JTextField

 
Jay Brass
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there,
I need to format a JTextField so that the users can only enter in phone numbers. I need to check to see if the phone number entered is one that is held in the database. Here's the catch, the database can be updated at any time without notice. So how do I format the field and check the data against the everchanging database before I do anything else? and do it in a timely fashion?
Thx
J
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the following section of the Java Tutorial, How to Use Text Fields. It explains how to create a validated text field.
Craig
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!