I am trying to use ImageIcon with Java Swing in order to power a simple Java 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?
I am trying to use ImageIcon with Java Swing in order to power a
Share
Use:
Something like this:
If
imagesis in your project folder.