I have a button inside a panel that once clicked will call out a child window. I already created it and there are already items inside it. Once the child window is opened the parent panel will be disabled.
Inside the child window I have a Button that closes the window which will then enables the parent panel.
childWindow.close();
parent.enable();
My problem is the default close button on the Window on the upper right side of the window. If I click it it, I cannot enable the parent panel. it stays disabled, because of course I disabled it.
How do I enable the parent panel once it is closed using the default close button?