title: Applet cannot seem to find resources
body: <p>There is a similar question (<a href="https://stackoverflow.com/questions/19460693/java-applet-cannot-locate-resources">Java Applet Cannot Locate Resources</a>), but <code>base</code> gives me an error, and asks me for the creation of a variable.</p>
  
  <hr>
  
  <p>I have an applet that I embedded into HTML with:</p>
  
  <pre><code>&lt;object type="application/x-java-applet" height="600" width="800"&gt;
  &lt;param name="code" value="net.me.applet.WindowMain" /&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>The applet launches, and attempting to change the contentpane's color works too, so that means that the link with the HTML might not have errors.</p>
  
  <p>Then, I linked my assets like so:</p>
  
  <pre><code>ImageIcon left = new ImageIcon(getCodeBase(), "Arrow_Left.png");
  </code></pre>
  
  <p>The PNG is in the same directory as my applet. The images don't show, so I assume that the assets were not found. I also tried doing <code>"/Arrow_Left.png"</code>, without avail.</p>
  
  <p>The directory structure is this:</p>
  
  <pre><code>/ root directory
  index.html
  (dir)net
       | me
           | applet
                 | WindowMain.class
  </code></pre>
  
  <hr>
  
  <p>When I developed the applet in Eclipse, I made a package with the compilation unit, and a folder called "assets" in the src folder, and I accessed those for testing purposes with <code>ImageIcon("src/assets/Arrow_Left.png")</code></p>