Hi, I'm trying to load an image into an application in Netbeans 5.0. The images folder is in the same directory as the .java files.
I don't understand why this code doesn't work.
I've tried changing the path, and changing the extension to .jpg, but it still won't go, doesn't make sense, I've used this method before. Any ideas? Thanks for any help
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
worksOK for me, .gif and .jpg
colin shuker
Ranch Hand
Joined: Apr 11, 2005
Posts: 712
posted
0
I don't get it, it won't work, I tried GIFs too. Doesn't make any sense
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
try this
if it also fails, you'll know the image (path, name etc) is the problem.
colin shuker
Ranch Hand
Joined: Apr 11, 2005
Posts: 712
posted
0
Hi, I finally fixed it, it was the path. I needed to use...