RocketBoom
RocketBoom

Reputation: 139

Java swing three relative comboboxes

I have three relative comboboxes lists that take data from the database, and if I change one, the other also changes through SetModel () method. The problem is that whenever a new pattern, the data in the other lists are changed, the listener again reacts to them. How can I solve this problem? Thanks in advance.

Upvotes: 0

Views: 48

Answers (1)

camickr
camickr

Reputation: 324157

the listener again reacts to them

  1. remove the listener
  2. do your processing
  3. add the listener back to the component

Upvotes: 2

Related Questions