Search code examples
javasecurityconfigurationappletnext-generation-plugin

How to save some config information in an Java Applet?


How can I save a configuration locally and permanently in a Java Applet? Ideally this should be work with a not signed Applet.


Solution

  • In addition to AlexR's methods..

    1. ..
    2. ..
    3. Run the applet in a new generation Java plug-in (1.6.0_10+) and use the JNLP API's PersistenceService to serialize the data. Here is a demo. of the PersistenceService.