Ok, just spent most of the day trying to fix a wierd bug with an itemrenderer and a popups. I have a button which exists only in the state “Expanded” but does not exist in the state “Normal”. When the button is clicked, the popupmanager creates a window and the state of reverts back to “Normal”, removing the button. Here is the kicker, If I click anywhere outside the popup, the focusmanager throw an error, something about a null value.
After some investigation, It turns out that clicking the button, it first gets focus, which is then passed to the popup when it is created. However since the button has then been removed, the focusmanager somehow gets confused when you try to click back on the main application, and refocus back on the old button. I’ve tried writing a small example, but its not happening, so its probably something i’m doing with Currentstate and its sequence.
You probably won’t experience this with any app you write, but it was bugging the hell out of me!