First post here on Javaranch...don't shoot me for it
I want to add a windowlistener to my JFrame that pops up a dialog. If the 'Yes' option is chosen then the JFrame must close, if the 'No' option is chosen then the JFrame must remain in tact.
So far I have something in the line of this.
(this is located in the constructor of my JFrame)
Can someone please tell me what I must do where the comment is now or give me a hint which other options I have to perform something like this?
Thanks in advance
Chris