SWT question

How can you prompt a save dialog when a user clicks on the close box and still keep the main shell alive till the user chooses a yes or no which exits the application or a cancel which keeps the application active...

The dialog part i can do...but how to keep the window active when you hit the close box is my problem now...someone help me!!!

[356 byte] By [DevXTa] at [2007-10-1 17:36:54]
# 1
Multiple posts: http://forum.java.sun.com/thread.jspa?threadID=640979 http://forum.java.sun.com/thread.jspa?threadID=640980 http://forum.java.sun.com/thread.jspa?threadID=641009
Torgila at 2007-7-11 2:32:49 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...