Any way to get notified when a CallOutBox closes? [SOLVED]


#1

I have some TextEditors in a Component displayed in CallOutBox::launchAsynchronously. I use the TextEditor::Listener::textEditorFocusLost method to update the changes to internal data, but the method will not be called when the CallOutBox is dismissed, i.e. when the user clicks outside the box. I need to check, if the values have changed and do the required updates, when the user is done with the CallOutBox. Is there any way to get notified about the CallOutBox being dismissed?


#2

You could attach a ComponentListener to it, and get called when it's hidden/deleted.


#3

That's perfect! Why didn't i see that... Thank you very much!