title: Multiple Applets - stop() and destroy()
body: <p>I have a page with multiple applets (yes, it's old). One of these applets overrides the stop method, as follows:</p>
  
  <pre><code>@Override public void stop() {
  
   System.out.println("Stop called!");
  
  }
  </code></pre>
  
  <p>But, when I do this, nothing is displayed in the console (yes, the java console) when I switch tabs, or do anything else that should call <code>stop()</code>. The same problem is happening with overriding <code>destroy()</code>. However, the <code>start()</code> and <code>init()</code> functions work as expected.</p>
  
  <p>My applets are extending another class, which in turn extends JApplet. I did this to give all of my applets access to specific functions (defined in this in-between class). These applets also create other threads for repetitive tasks, but I don't think that should affect the life cycle methods. I'm not sure where to look at this point, is it possible that the focus functions or something else like that is preventing the lifecycle methods from executing, or does having multiple applets on one page cause problems with these methods? Thanks beforehand.</p>
  
  <p>EDIT: I have posted a SSCCE on my server to show this behaviour <a href="http://www.miratronix.com/SSCCE" rel="nofollow">Click here to run</a> and <a href="http://www.miratronix.com/SSCCE/SSCCE.zip" rel="nofollow">Here to dowload sources</a>, it's a simple applet that starts a thread, which calls a method in the parent applet that opens a JDialog. You'll notice that you can close the browser tab while the dialog is open (as long as there are other tabs open) and neither the stop or destroy print statements will occur in IE10. On top of that, the JVM keeps running, and the Java console does not close. However, if you acknowledge the pop-up before closing the browser window, everything functions as expected.</p>
  
  <p>So, the question then, is if someone closes the browser window while a popup is open, how do I kill the extra thread, and the pop-up itself?</p>