SWING QUestion
1 posts in topic
Flat View  Flat View

Posted By:   Darshan_Bildikar
Posted On:   Thursday, June 5, 2003 01:32 AM

Is there a standard utility by which I can validate an IP address being entered by a user into a text box?

i.e. after 3 digits are entered it should move on to the next segment. Something like the windows IP address inputs..
+ validations should also be done...

Re: SWING QUestion

Posted By:   Bahman_Barzideh  
Posted On:   Thursday, June 5, 2003 05:33 AM

I don't know of a class that would do exactly what you are looking for.
But, if you are using JDK 1.4 or higher you might want to take a look at the MaskFormatter class. You can use this class with the
JFormattedTextField class to control/validate the input a
user is typing into a text field.
About | Sitemap | Contact