I am running a java applet in netscape 4.x. This applet is not embedded in a webpage. It opens in its own window.
If user select file -> exit in applet, I can programatically save data to database before closing the applet.
If the user either:
A: clicks the 'X' in the upper right hand of the window
B: hits alt-f4 on the key or right clicks
C: right-clicks on the window's button on the task bar and selects close
I cannot save application data before the applet closes.
The code necessary to save this data (to a database)is to extensive to execute completely in the stop() or destroy() methods.
Is there anyway to pause the applet shutdown in order to save data?
If a user tries to close ms word by any method other than force quitting w/o saving changes, word pauses the shutdown process to prompt user to save changes. I would like to do the same thing - except prompting the user - using a java applet in a netscape browser.