OK, that was a silly mistake, Next time I should look more carfully in Java Docs
Thanks Michael & Rob for the quick and correct reply.
But my little knowledge of JFC forces me to ask this:
Why we need (separate) "windowClosed" event, can't we simply write all the code/logic related to "window closing/ed" thing in one method ?