Displaying Dialog in shouldYieldFocus method of InputVerifier
I have implemented InputVerifier in the JTextField to verify whether the text passes my criteria.
Documentation says that the InputVerifier method shouldYieldFocus can have side effects ?so I am displaying a Dialog box informing the user that the text is invalid.
But that dialog causes to another call to shouldYieldFocus ?and finally I get stack overflow exception. How can I inform the user that the text is invalid without causing recursive call to shouldYieldFocus methd?

