title: Java JOptionPane.showMessageDialog custom icon problem?
body: <p>So I have a pop-up dialog in my application that tells the user about the program. Everything was going fine until the custom icon. Here's what I've attempted:</p>
  
  <p><strong>Attempt 1:</strong></p>
  
  <pre><code>JOptionPane.showMessageDialog(dialog, "Blah blah blah", "About", JOptionPane.INFORMATION_MESSAGE, new ImageIcon("home/user/Pictures/default.jpg"));
  </code></pre>
  
  <p><strong>Attempt 2:</strong></p>
  
  <pre><code>final icon = new ImageIcon("home/user/Pictures/default.jpg"));
  
      JOptionPane.showMessageDialog(dialog, "Blah blah blah", "About", JOptionPane.INFORMATION_MESSAGE, icon);
  </code></pre>
  
  <p><strong>Attempt 3:</strong></p>
  
  <pre><code>final icon = new ImageIcon("home/user/Pictures/default.jpg"));
  showMessageDialog(dialog, "Blah blah blah", "About", JOptionPane.INFORMATION_MESSAGE, icon);
  </code></pre>
  
  <p><strong>Attempt 4:</strong></p>
  
  <p>(Screaming at java)</p>
  
  <p><strong>Attempt 5:</strong></p>
  
  <p>Using URL's</p>
  
  <hr>
  
  <p>All have had no affect on the program and instead of an image, I don't get anything.</p>
  
  <hr>
  
  <p><strong>Details:</strong></p>
  
  <ul>
  <li>No exceptions</li>
  <li>The file path DOES exist</li>
  <li>My IDE doesn't return exceptions, NOR any warnings of any sort</li>
  <li>Yes, I've put also tried the path /home/user/Pictures/default.jpg</li>
  <li>.ico's, .png's, .jpg's don't work. I'm not so sure about .gif's right now though.</li>
  </ul>
  
  <p>Help me! :(</p>