Reputation: 577
In HTML5, one uses local storage to store things on the client's computer, making them persistent beyond a page refresh. Usually, one uses JavaScript to program things on the client-side, but Java applets can be on the client-side too! Thus, I must ask, how do I use local storage from within a Java applet? If it's not possible, then what can I use instead to make things persistent beyond a page refresh?
Upvotes: 2
Views: 418
Reputation: 147164
You can either use LiveConnect to call the JavaScript "HTML5" functions or (since 6u10) use javax.jnlp.PersistenceService
.
Upvotes: 2