posted 16 years ago
validating/error message scenario in focusLost is generally a bad idea.
InputVerifier() is a much better solution, and perhaps a JFormattedTextField or
DocumentFilter even better. Depends on whether you want an error message displayed, or
instead, just have the textfield not accept erroneous input