Ok, here's the setup:
MAIN APP
State="reg"
Component="login"
TitleWindow
At the main app's start, the state is NOT 'reg'. A button sets the
main app's state to 'login'.
How then can I get that the TitleWindow - held by the component - is
being closed?
I've tried to do a setEventHandler but it doesn't work.
So on the titleWindow's close, do I dispatch an event, and have the
main application listen for it?
But how do I set it, if, at the creationComplete if the component
'login' doesn't exist until the state 'reg' is called?