Currently, if a CDockable is externalized to a JFrame, it behaves as though the frame’s default close operation is set to DO_NOTHING_ON_CLOSE. If the the user clicks the close button or tries to close the frame from their task bar, nothing happens. This is confusing.
If we add a WindowListener (or WindowAdapter) to the JFrame containing an externalized panel, the listener’s windowClosing(…) method could close the floating frame and reconnect the panel to the original frame.