I have 1 package that manages the main JFrame of my application.
This JFrame needs to access an image (which is a resource) of another package.
I was able to get it to work using:
new ImageIcon(getClass().getResource("../"+packageName+"/icon.jpg"));
But this does not work when using a runnable jar (getClass().getResource("../"+packageName+"/icon.jpg")) returns null). Any suggestions?