> I have problem with loading an image from a directory.
> I got a folder called images wich is located in my project directory :
> c:\MijnJava\Swing_01.
Hi,
the image isn't missing . It is there.
So I think that java doesn't look in the correct directory or something.
greets
Tom
> > Hello,
>
[quoted text clipped - 15 lines]
> http://www.PhySci.org/
> http://www.1point1C.org/
Andrew Thompson - 01 Nov 2003 16:16 GMT
> Hi,
Hi Tom,
Please do not 'top-post'. If you insert
comments where they are relevant, it makes
a conversation easier to follow.
> the image isn't missing . It is there.
Yes, I believe you.
> So I think that java doesn't look in the correct directory or something.
Correct. That is my understanding also.
That is why I recommended you use the..
java.lang.Class.getResource("myImage.jpg")
..method to locate it for you.
--
Andrew Thompson
http://www.AThompson.info/
http://www.PhySci.org/
http://www.1point1C.org/