Calling grabFocus inside focusLost

I have an error dialog box displayed inside focusLost handler of the JTextField control.

After I validate the text entered in the JTextField (which is actually DefaultTreeCellEditor) and decide to display Dialog box inside the handler I also call grabFocus or requestFocusInWindow method of the JTextField. My problem is that then I get another two focusLost calls which display the dialog box two more times.

I can understand the second call as the dialog box gets the focus, but why do I get a second call?

Is there anyway I can filter the number of calls to focusLost method somehow?

[612 byte] By [rejki@optusa] at [2007-11-27 2:55:33]
# 1
use an InputVerifier()
Michael_Dunna at 2007-7-12 3:32:25 > top of Java-index,Desktop,Core GUI APIs...