When a user changes the value in a JComboBox, I want to prompt them to confirm the change. If they say "no," the old value will remain. If they say "yes," the new value will be selected.
I tried adding a VetoableChangeListener to the combobox, but this does not ever seem to be fired!
Per the JavaDoc for JComponent.addVetoableListener, "Adds a VetoableChangeListener to the listener list. The listener is registered for all properties."
Any idea of what is going on?
Many thanks!