• Post Reply Bookmark Topic Watch Topic
  • New Topic

IP Valuadtion  RSS feed

 
Rajasree R
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
can anybody suggest which is best way to do IP validation in a text field.
Using JFormattedTextField I can validate only the pattern,not the range of numbers,as of I know.

Regards
Rajasree
 
Suman Mummaneni
Ranch Hand
Posts: 97
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I think the best way to validate the IP is to check for 4 '.' characters do not check for "." this has different meaning in java.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!