SCJP, SCJD
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
SCJP, SCJD
Anne Crace wrote:Hi all. Quick update. I think K Tsang is right about what is actually occurring here. I have already exited the method. The problem only happens on subsequent clicks of the button. I am trying to take Roberto's approach of only accepting numeric IP addresses as I think it will eliminate most chances for bad input, and simplify things. I already have a PositiveIntTextField class, so I added an overloaded constructor and another Document model that takes numbers and dots. I have been having issues on getting it to accept the period or dot. char period = '.'; doesn't seem to work. The core of the problem is doing like K Tsang said and validating based on the value of what is in the properties file, even though right now it is the same one. I will test it at home on two computers to be sure it works as I don't quite trust localhost testing. It has worked in the past on two computers so it will work again, I'm sure.
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|