Hi,
is it possible to cancel/avoid the closing of a JFrame if the user clicks on the cross(x) on the top right of the frame in a
java Application.
i want to give a message to the user:
Save Changes to the document?
with the options:
Yes / No / Cancel
i can do the programming of Yes/No in the windowClosing() of the WindowListener associated with the JFrame. but, i am unable to give a functionality for the Cancel.
Your help will be greatly appreciated.
---------
Amit
