How do I close a JDialog and have the Window Event Listeners be notified?

Viewed 59795

Is there a way to close a JDialog through code such that the Window event listeners will still be notified? I've tried just setting visible to false and disposing, but neither seem to do it.

5 Answers
Related