I have a Swing JComboBox
with an InputVerifier
set correctly.
I am using the combo box to set an integer.
If I type "cat" in the field and hit tab, my InputVerifier
triggers and resets the value to "0".
If I type "cat" and hit enter, my InputVerifier
is never called from actionPerformed
. Do I need to explicitly call my InputVerifier
from actionPerformed
?
What's the best model to validate my JComboBox
on tab and enter? It seems like this is something that should be given to me "for free" by the swing model.