Sometimes that happens if you're working from an IDE. An IDE can get out of sync with the file system, so if you moved the image file, the IDE doesn't know about it and can't find it. Not intuitive,...
Type: Posts; User: KevinWorkman
Sometimes that happens if you're working from an IDE. An IDE can get out of sync with the file system, so if you moved the image file, the IDE doesn't know about it and can't find it. Not intuitive,...
What is the absolute path of imgURL?
My advice is to get it working using the paintComponent() method first. If you then really want to use active rendering, go from there.
Why are you trying to not use a paint method? Or better yet, a paintComponent() method? Your active rendering loop seems pretty suspect to me.
Recommended reading: Lesson: Performing Custom...