title: How to find path to Image in Netbeans Plaform Maven Plugin
body: <p>I try write plugin to NetBeans IDE. But I have problem with finding correct path to some image:</p>
  
  <p>Here is my project tree structure:</p>
  
  <p><img src="https://i.stack.imgur.com/G1y0f.png" alt="enter image description here"></p>
  
  <p>And testing code like this dosent show icon wePagesBadge.gif</p>
  
  <pre><code>        ImageIcon image = new ImageIcon("webPagesBadge.gif");
          JOptionPane.showMessageDialog(null, "Some Messsage","Example",JOptionPane.INFORMATION_MESSAGE,image);
  </code></pre>
  
  <p>of course when i put this image into root folder where i have on my local computer installed netbeans the icon appear in JOptionPane. This path is </p>
  
  <pre><code> C:\Program Files\NetBeans 8.0
  </code></pre>
  
  <p>Other example is when i not using Maven Project Type to develop plugin but Netbeans Module Project Type:</p>
  
  <p><img src="https://i.stack.imgur.com/CWdRT.png" alt="enter image description here"></p>
  
  <p>this time the image appear on the JOptionPane. I spent a lot time to find answer and I don't have idea how to fix it.</p>