Forums Register Login

suspending frame from closing

+Pie Number of slices to send: Send
my windowClosing(event) method overrides windowClosing(event). when the user clicks "x" in the main frame (frame), i would like the frame to stay open until the user clicks "yes" or "no." as of now, the frame closes, then the "yes/no" option frame pops up.

in the else if(e.getWindow()...) i would like the frame to stay open while frameExitObj.exitPerformed() is called.
[ December 30, 2003: Message edited by: Tony Fabeets ]
+Pie Number of slices to send: Send
I'll move this to Swing/AWT. Let's see if it does any better there.
eat bricks! HA! And here's another one! And a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1014 times.
Similar Threads
Prompting the user whether to close the JFrame
Frame SIze
Closing a window.
gui and thread
minimise to systray
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:03:24.