When you call setText (or setSelectedId) with dontSendChangeMessage set to true, a change message will be sent anyway. This is because SimpleValueSource::setValue class sends a change message regardless of the state of dontSendChangeMessage. Could this be fixed please?
Well, yes the Value will send a message to its listeners, but the ComboBox won’t send one to its ComboBox::Listeners, which is what that flag means…
Oops. Sorry for the noise. setValue was not the origin of the change message. It came from calling clear without dontSendChangeMessage set.
There is another small glitch related to this. If you override mouseWheelMove in a ComboBox, you’ll receive two mouseWheelMove messages, one from the ComboBox and one from the label. Not cool. The solution is to look at the MouseEvent component (e.eventComponent) and only use the event sent by the ComboBox. Thought this might help somebody.
You shouldn’t be subclassing these controls. Instead, consider attaching a MouseListener.