On Sat, 9 Feb 2002 [EMAIL PROTECTED] wrote: > You mean saving state variables to (synchronized) statics?
No, I didn't mean to suggest any particular technique. There are many different possibilities for saving the state. Using static vars is one of them, but not the most reliable because you are not guaranteed that the VM won't be reinitialized by the browser between page loads. But if you are targeting a particular browser and you know how it handles the JVM, I don't see a problem with this approach. This is getting off-topic, but some other possibilities are (each with it's own set of pros and cons, so choose based on the needs and specifics of your project): 1. serializing to the clipboard 2. serializing to a local file 3. serializing to a server (http, database/jdbc, ldap, etc.; with JDK1.4 you can use the nicely abstracted Preferenes API to save to the local registry or to a remote server) ... Cheers Dmitry _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing