I have an applet loaded into a hidden iframe on my page (use for background encryption of stuff). My problem is that when I configure a BasicDialog to be modal showing and hiding the dialog causes the browser (firefox) to destroy the running applet instance and create a new one. I don't understand why this is happening - everything is fine when the dialog is not modal.

Any hints?