1

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?

perissf
  • 15,979
  • 14
  • 80
  • 117
Thargor
  • 1,862
  • 14
  • 24

1 Answers1

2

Maybe you mean to temporarily disable a listener.

Here is something useful.

I think a flag is good.

Community
  • 1
  • 1
niyuna
  • 36
  • 2
  • Thanks for the answer. I now use a flag (this idea occurs to me after writing the question =) ). I see no other way for the problem. – Thargor Jan 02 '12 at 11:37