title: JOptionPane.showInputDialog auto exit
body: <p>With this,</p>
  
  <pre><code>JOptionPane.showInputDialog(null,"Enter Your Name");
  </code></pre>
  
  <p>I'd like the user input dialog box to auto exit. I mean within 2 or 3 seconds only show that <code>JOptionPane</code> user input dialog and close after that. It should automatically close that input dialog box only, not the whole program. The <code>System.exit(0)</code> method causes the full program to exit, but I want only close that input dialog box not full program. Then I want only Swing input dialog not message box and confirm box.</p>