• Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus Lost - Getting called twice.

 
Vikram Deshmukh
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having Message Box which is getting called on focus lost of TextField. But problem is it is being called twice.
What is the solution for it ? Except to put a flag ?
waiting for replies ...
vikeam.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check isTemporary() on the FocusEvent... usually only one will return false, and you can use this one as the real focus lost event...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!