My web page runs a signed applet when loaded. After a user clicks a button on that page it makes the applet control Visible='false' and makes another signed applet Visible='true'.

When the first applet initially loads with the web page I am asked for permission to run signed applet but when the second one is loaded I don't see such security dialog box and I think that's why it don't work properly (it starts as a simple applet and not signed one).

Is there any way to force that security dialog box on the second applet or to completely unload the first one (with JVM together?)? Maybe JVM is to slow to unload the first signed applet?