I have a weird problem: Two radio-buttons trigger numerous changes in my UI, and the update takes about half a second. If I press the other radiobutton while updating, then this new state will trigger a new update of the UI, and then the fun starts: the old changes somehow disturb, and makes the UI loop back and forth between the two states that correspond to the radiobuttons, which also loop back and forth - completely without pressing them!! It looks funnier than it really is…
I’ve tried the disable the radiobuttons (setEnabled(false)) as the first in the series of changes, but the UI seems to “remember” a mouseclick on the disabled radiobutton, and the problem persists when the other radiobutton becomes active again. Is there another way to disable components? Maybe disable mouse-presses so the events are litterally lost, while updating…?
Thanks in advance!
-A