title: Setting focus in JOptionPane JPasswordField
body: <p>I have created a password field using <code>JOptionPane</code>. When I run the program, the <code>JOptionPane</code> comes up and looks great, however the focus always goes to the OK button. I want the focus start on the password field. I've tried <code>requestFocus()</code>, <code>requestFocusInWindow()</code>, but this doesn't seem to work. Is there something special that I need to go to get the focus on password field?</p>
  
  <p>See my code below :</p>
  
  <pre><code>JPasswordField pf = new JPasswordField();
  pf.requestFocusInWindow();
  int okCxl = JOptionPane.showConfirmDialog(null, pf, "ENTER SUPERUSER PASSWORD", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
  </code></pre>