title: joptionpane default value showinputdialog
body: <p>Can i do that ? I want to set default value of my option pane is 9090..
  This is my option pane code</p>
  
  <pre><code>private static int setPortNumber()
  {
      String portNumber = JOptionPane.showInputDialog(frame,
              "Enter the Port number for server creation","Server Connection\n",
              JOptionPane.OK_CANCEL_OPTION);
      int PORT = Integer.parseInt(portNumber);
  
      return PORT;
  
  }   
  </code></pre>