Thanks for that Will. I'd already added something similar as a work around so great minds think
alike. The problem I have though is that when the setText() or setValue() is used the value passed
is from another system which could pass invalid data so the idea was that the normal validation on
the field would either flag a problem up or not.
Any idea's why setValue() and/or setText() on a JFormattedTextField with an InputValidator causes
the getText() not to function as expected in the veryify routine ? Strikes me its some kind of Java
bug on the face of it.
> Any idea's why setValue() and/or setText() on a JFormattedTextField with an InputValidator causes
> the getText() not to function as expected in the veryify routine ? Strikes me its some kind of Java
> bug on the face of it.
I think after setValue/setText you should do a commitEdit()
Will
author of JForm
jform.coderight.nl
> Thanks for that Will. I'd already added something similar as a work around so great minds think
> alike. The problem I have though is that when the setText() or setValue() is used the value passed
[quoted text clipped - 17 lines]
> > Regards,
> > Will
Webby - 29 Apr 2004 21:12 GMT
Ok Will I'll try that tomorrow and see what happens.
Thanks
Steve
> > Any idea's why setValue() and/or setText() on a JFormattedTextField with an InputValidator causes
> > the getText() not to function as expected in the veryify routine ? Strikes me its some kind of Java
[quoted text clipped - 27 lines]
> > > Regards,
> > > Will