AppletContext.setStream doesn't save the stream when the browser is closed
I wanted to use AppletContext.setStream and getStream in order to remember the changed settings of the applet between 2 usages.
setStream is in Applet.close() and getStream is in Applet.start()
What I've discovered is that if I go to another page and come back to my applet page then the stream is saved correctly but if I close the browser and come back to the page getStream(key) returns null.
I've created an small example with source code:
This happens with IE and Firefox, Java 6u10 and 6u7.
Is it a bug or is it normal?