• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Validating values in fields

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic