Results 1 to 1 of 1
Thread: SWT - X Button
- 06-16-2010, 04:05 PM #1
Member
- Join Date
- Jun 2010
- Posts
- 1
- Rep Power
- 0
SWT - X Button
I wrote the code such that pressing the X button on the upper right corner will pop up a message that allows you to cancel exiting the window(using DisposeListener). the problem is that the X button automatically (so i believe) performs shell.dispose() and pressing "Cancel" closes the window anyways, even though the code does not say dispose() upon cancelling.
How do I prevent the X button from disposing of my window when "Cancel" is pressed?
Similar Threads
-
AWT button image
By timkd127 in forum AWT / SwingReplies: 2Last Post: 03-01-2010, 04:41 AM -
Button
By Tb0h in forum New To JavaReplies: 6Last Post: 07-22-2009, 01:28 AM -
help with button content
By yahyaaa in forum New To JavaReplies: 4Last Post: 09-20-2008, 10:53 PM -
Using SWT Button
By Java Tip in forum Java TipReplies: 0Last Post: 01-08-2008, 09:05 AM


LinkBack URL
About LinkBacks

Bookmarks