Thargor
Thargor

Reputation: 1872

Don't call the ItemListener at adding a Item to a JavaComboBox

I have a JavaComboBox and a ItemListner on this ComboBox. These ItemListener is called every time i add a Item to the ComboBox with addItem(). Is there a way to dont call thise ItemListner by adding a Item?

Upvotes: 1

Views: 690

Answers (1)

niyuna
niyuna

Reputation: 36

Maybe you mean to temporarily disable a listener.

Here is something useful.

I think a flag is good.

Upvotes: 2

Related Questions