Suggestion: use WindowListener on floating/externalized JFrame

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.

I like the idea, I just added this feature to 1.1.2p8d.

And if someone wants to customize the behavior: then have a look at the property key “ScreenDockStation.WINDOW_CLOSING_STRATEGY”.