title: ImageIcon how to get filepath of image for use in java?
body: <p>I am trying to use <code>ImageIcon</code> with Java Swing in order to power a simple <code>Java</code> game. I would like understand how to call a relative filepath from the eclipse workspace inside a project folder? What is the code that can be used to implement the relative filepath in eclipse for an image resource?</p>