Link to home
Start Free TrialLog in
Avatar of rdy1437
rdy1437

asked on

close button in frame????

Hi guys. How would i trap in frame so that when a user click the X button(AWT Frame), i will issue a message asking "Do u really want to exit?"..

thanks..
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Add a window listener to the frame, and prompt the user in the windowClosing() method.
ASKER CERTIFIED SOLUTION
Avatar of udaykumar22
udaykumar22

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for elaborating on my original comment :)
Avatar of vemul
vemul

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- split points between objects and udaykumar22

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
Objects, Look for your question in this topic area

Computer101
E-E Admin