I have a swing application with JTextFields that I attach InputVerifiers to. I have valid defaults applied to the fields via the setText method, e.g.
this.myField.setText("11");
But it seems that public boolean verify(JComponent component)
doesn't get called unless focus is applied to the fields. I've tried to programatically request focus, but that still doesn't seem to fire the InputVerifier, e.g.
this.myField.requestFocus();
How can I progrmatically set textfield text and get my InputVerifier to fire and run its verify() method?
I could manually fire the InputVerifier after I construct it, calling verify() and passing in the component, but that seems really unnecessary since the TextField is already wired up to the InputVerifier.