I have this problem: I have a control window with some controls and "close" button. If "close" button is pushed, hide() method of controlWindow is called, and after re-opening it everything is fine. But if I close controlWindow with close button on window frame, then after re-opening controlWindow it's canvas is black, without controls and close button. So my question is - how to handle this situation, and is it possible to intercept window close action and call hide() method instead?
P.S. I don't want to use "controlWindow.setUndecorated(true);".