There is no 100% proof way of doing this as the specifics depend on how the 
JVM is integrated into the browser.  Your best bet is to try overriding the 
stop() and/or destroy() methods of JApplet and save the state from 
there.  Make sure, though, that you don't spend much time inside these 
methods, because the browser might not let your task run to full completion 
(this is done for security reasons, otherwise, one could prevent unloading 
of the applet by never returning from destroy() ).

Regards
Dmitry

At 06:03 AM 2/8/2002, [EMAIL PROTECTED] wrote:
>I have an applet whose internal state can be extensively modified by
>the user.  As I have it now, if the user leaves the applet's page and
>then returns to it, the applet that comes up is in its pristine state
>(i.e. its state right after init() executes); the state that the user
>arrived to before leaving the page is lost.
>
>Is there any way to preserve this state across browsing (so that
>returning to the applet's page returns the user to the applet as
>he/she left it)?

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to