posted 22 years ago
I'm trying to load an image and show it in a Canvas. I used the default toolkit's getImage() to load it, used a MediaTracker to, of course, track it, and it showed me that I got an error loading the image... Why?? Please... I need it working tomorrow. Look at the (sample) code:
Debug 1 prints out:
File exists: true
Debug 2 doesn't print
Debug 3 prinst out:
Error loading: true
Debug 4 prints:
drawImage: false
drawImage: false
drawImage: false
drawImage: false
drawImage: false
drawImage: false
drawImage: false
and so on...
Anybody can tell me what could be wrong since I get an error loading the image, and the image is actually at c:\juba\used.bmp... (debug one shows that)
Thanx in advance
Juba d-_-b