aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Validating values in fields Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Validating values in fields" Watch "Validating values in fields" New topic
Author

Validating values in fields

Dylan Margoczi
Ranch Hand

Joined: Jul 12, 2007
Posts: 38
Hey people.

I'm experiencing problems when validating values in fields
I currently validate whenever I loose focus on a field but the problem is that I display a message box each time the value is incorrect.
So when you go into a new field and the last field had an incorrect value it will loose focus from the new field when the message box pops up and so it validates that field as well.

I tried flagging it when focus is gained (and only then validating it), but it seems to gain focus on the next field before it displays the message box and so reseting the flag.

thanks Dylan.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9946
    
    6

This is probably a litte advanced for this forum. I'm going to move it to the Swing forum, where you'll probably get a better response.


Never ascribe to malice that which can be adequately explained by stupidity.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Duplicate of this thread. Closing this one.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Validating values in fields
 
Similar Threads
Validating Values in fields
Validating Values In Fields
Validating values in fields
generating textfields when i click a button
Focus problem wiht Mac OS