I have the following project-tree:
I can access the 290.gif file in the path: Java GUI/src/dk/resources/290.gif by using the following command:
this.getClass().getResource("/dk/resources/290.gif")
But I can't access the 290.gif file in the path: Java GUI/resources2/290.gif by using the following command:
this.getClass().getResource("/resources2/290.gif")
I am trying to access the 290.gif file from the HelloWorldFrame.java class. I want to access the 290.gif file in the path: Java GUI/resources2/290.gif!
What am I doing wrong?