title: How to display an icon on JOptionPane.showInputDialog() in Java?
body: <p>The following segment of code shows <code>JOptionPane.showInputDialog()</code> method. It works fine, Now I want to display a custom icon on it. I currently left it <strong>null</strong> as shown below.</p>
  
  <pre><code>String operatingSystem = System.getProperty("os.name");
  Object o[] = {"Turn Off", "Restart", "Stand By", "Log Off"};
  Frame frame = new Frame(operatingSystem);
  
  Object selectedValue = JOptionPane.showInputDialog(frame, 
      "What would you like to do with the system?", "Select a task", 
      JOptionPane.INFORMATION_MESSAGE, null, o, o[0]);   //&lt;---- Here it is.
  </code></pre>
  
  <p>How can an icon be displayed on it replacing <strong>null</strong>?</p>