2

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?

Tespa42
  • 567
  • 4
  • 12

1 Answers1

2

You can either use LiveConnect to call the JavaScript "HTML5" functions or (since 6u10) use javax.jnlp.PersistenceService.

Tom Hawtin - tackline
  • 145,806
  • 30
  • 211
  • 305