wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes  JFormattedTextField still verifies upon Cancel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark " JFormattedTextField still verifies upon Cancel" Watch " JFormattedTextField still verifies upon Cancel" New topic
Author

JFormattedTextField still verifies upon Cancel

laila NiHai
Ranch Hand

Joined: Oct 18, 2010
Posts: 35
Hello,

I am using JFormattedTextField and override the verify method to notify the user of invalid input. This all works great; however, if an invalid input is entered and the user decides to exit/cancel without making to correction, the verifier still kicks in. I am not sure how listening to the textField will work, b/c when the button is clicked then the source is the button...but the textfield still has focus...

Please give me some pointers on how to fix this.

Thanks in advance for your time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFormattedTextField still verifies upon Cancel
 
Similar Threads
Validation for Textfield
cancel button issue
JFormattedTextField
Create JTable custom editor to validate againts string data type
validation annotation in struts-2