title: How to show image in JOptionPane in Netbeans
body: <p>The code I used in <code>JGrasp</code> to show the image is not working in Netbeans</p>
  
  <p>The code I used in <code>JGrasp</code> is</p>
  
  <pre><code>final ImageIcon icon1 = new ImageIcon("image/money.gif");
  JOptionPane.showMessageDialog(null, " blah blah", "Text",
     JOptionPane.INFORMATION_MESSAGE,   icon1);
  </code></pre>
  
  <p>If I wanted to show an image in <code>JOptionPane.showInputDialog</code>, would it be the same for <code>JOptionPane.showMessageDialog</code>?</p>
  
  <p>Any help is greatly appreciated!</p>
  
  <p>Edit: I don't think that the location is the problem because when I do this</p>
  
  <pre><code>menuPic = new javax.swing.JButton();
  menuPic.setIcon(new javax.swing.ImageIcon(
      getClass().getResource("image/money.gif")));
  </code></pre>
  
  <p>It shows the image fine, but when I try to add an image to my <code>JOptionPane</code>, it doesn't show anything.</p>