The getResource() method returns the fileName
And yes, the file exists.
I thinks it´s quite weird since all I did was to modify the pics from jpg to gif, (deleted the jpgs and inserted the gifs...
Type: Posts; User: gargamel7
The getResource() method returns the fileName
And yes, the file exists.
I thinks it´s quite weird since all I did was to modify the pics from jpg to gif, (deleted the jpgs and inserted the gifs...
As I mentioned earlier: the code worked before changing the jpg´s to gif´s (I changed all .jpg names in the code to .gif also).
Ok, thought the error may come from some rule like that the getResource() loads stuff or something.
Error:
Here´s the code:
Main:
Clock:
My code compiled without errors, but when I modified three pics in photoshop and turned them to gif (from jpg) the program wont compile since there´s some error with the getResource(). How to fix?...