title: JOptionPane.showOptionDialog does not always move to front in Applet
body: <p>I have a JOptionPane popup in my applet normally, a-la:</p>
  
  <pre><code>      Object[] options = {"Grade", "Save", "Cancel"};
        selection = JOptionPane.showOptionDialog(this,
        "Do you want to grade now or save your work to continue later?",
        "Grade Or Save",
        JOptionPane.DEFAULT_OPTION,
        JOptionPane.QUESTION_MESSAGE,
        null, 
        options,
        options[2]);
  </code></pre>
  
  <p><code>this</code> refers to the JApplet object.</p>
  
  <p>The popup works fine and everything, but occasionally it will appear behind the applet instead of popping up in front of it.</p>