title: JOptionPane title bar icon
body: <p>I'd like to replace the icon in a JOptionPane title bar (as it currently shows the default Java coffee logo).</p>
  
  <p>I tried the following:</p>
  
  <pre><code>JOptionPane.showMessageDialog(null, "Some Text", "Login",
   JOptionPane.INFORMATION_MESSAGE, ImageCacheProvider
     .instance.getImageIcon("img/an image.png"));
  </code></pre>
  
  <p>It replaces the icon in the window but not the one in the title bar:</p>
  
  <p><img src="https://i.stack.imgur.com/OzkY3.png" alt="Screenshot title bar"></p>
  
  <p>Is there any approach to change the icon in the title bar or alternatively to hide the default Java icon without having to implement a JDialog class?</p>
  
  <p>Thanks a bunch!
  Thomas</p>