Retaining focus
Hi,
I have two required JTextFields with FocusListeners (I extend FocusAdapter). Before losing focus on the first field I want to check the value so my focusLost() performs a check and if it is unusually low (but still legal) I put up a JOptionPane.showConfirmDialog() asking to confirm the data YES or NO. If they click NO I want to retain focus so I perform a requestFocus() on the text field before returning to the focusLost() method but it doesn't work, focus still transfers to the next JTextField.
QUESTION - What is the proper way to retain focus?
Thank you, I will try to put some Duke Stars on this question.

