posted 21 years ago
I know how to write a window listener class. But I have always only written one for a single JFrame. Is it possoble to implement window listener in one class and invoke this class on multiple JFrames in one app?
I am assuming that the answer to this question is yes, and if so, when I getSource() in the event windowEvent method how do I know which Window/JFrame is active? Do I gain that from the windowActivated() method?
Thanks.