title: Problems creating a icon
body: <p>I have problems trying to create an ImageIcon for my project. My createImageIcon method goes as follows ::</p>
  <pre><code>
   protected ImageIcon createImageIcon(String path, String description)
     {
      java.net.URL imgURL = getClass().getResource(path);
      if (imgURL != null) 
      {
          return new ImageIcon(imgURL, description);
      } 
      else 
        {
          System.err.println(&quot;Couldn't find file: &quot; + path);
          return null;
        }
     }
  
  </code></pre>
  <p>And the line that creates the Icon ::</p>
  <pre><code>
        ImageIcon icon = createImageIcon(&quot;**ICON URL***&quot;,&quot;Java&quot;);
  
  </code></pre>
  <p>Unfortunately, I cannot create any Icon because all the URLs I enter are not found (the file is not found). Could someone please tell me how to get the URL of an image found online that will work and will fit for this method? Thanks.</p>