How to avoid infinite update loops in Swing?
I have a JPane with a set of items (for example combo boxes and text fields). Some action listeners are implemented on those items to register user updates.

If the user selects a value in a combox (for example), the action listener capture the event. The corresponding underlying bean method is called and the pane is refreshed. Changing can have an impact on other fields displayed in the pane.

The problem is that when the pane is refreshed, all listeners are triggered, and they call for a refresh themselves. This leads to an infinite loop. 

How can I avoid this? I can't get rid of the listeners, because I need to capture user updates, but I don't want these to fire when I am only refreshing the pane content.
How to avoid infinite update loops in Swing?
===

I have a JPane with a set of items (for example combo boxes and text fields). Some action listeners are implemented on those items to register user updates.

If the user selects a value in a combox (for example), the action listener capture the event. The corresponding underlying bean method is called and the pane is refreshed. Changing can have an impact on other fields displayed in the pane.

The problem is that when the pane is refreshed, all listeners are triggered, and they call for a refresh themselves. This leads to an infinite loop. 

How can I avoid this? I can't get rid of the listeners, because I need to capture user updates, but I don't want these to fire when I am only refreshing the pane content.