Control Applet close
I have an Applet (using update N and the new plugin).
I would like to have some control over how the Applet is closed, specifically if the user closes the browser window or the tab in which the Applet is being displayed.
There might be unsaved data in the Applet, and the user needs to be prompted to save the data if they close the browser window.
However, I understand that the Applet will be forcibly closed if the browser is closed. I tried putting code in the destroy() method of the Applet, but the VM is forcibly terminated if the code waits for user input.
Is there a clean way to control the closing of an Applet so that some interaction with the user can be done before the Applet JVM actually closes.
Thanks & Regards