posted 19 years ago
Hey all,
anybody here used an InputVerifier when verifying input in a dialog?
Seems like a neat idea, but how would you overcome this?
1) User enters inappropriate data in a JTextField which has an InputVerifier associated with it.
2) User decides that he had enough of URLyBird for today and hits "Cancel".
3) Hitting "Cancel" causes Swing to attempt transferring the focus to the "Cancel" button, thus trying to validate the input field.
4) Validation of the input field fails, so focus stays on the JTextField.
Conclusion: User cannot exit the dialog.
Enlighten my way, please.
"Large Vehicles Require More Room" - Highway 69 en route to Sudbury, Ontario