I have to show a bmp image in a Canvas, inside a frame. I tried to use Toolkit's getImage(String <filename> , but it didn't work... Actually I copied the code from an old post here at this forum. Here it is:
It compiles and run fine, but the image simply is not painted, and it actually exists (i get a true printed in the console). Why doesn't it work? How can it be done (without using an applet) ? Thanks in advance... JUBA d-_-b
And all I got is hundreds of thousands of: drawImage: false drawImage: false drawImage: false drawImage: false drawImage: false Why??? What can be done? I really need this working! Please help me... Thanks, Juba d-_-b
I added this to my code. Everything compiled and ran fine, but still didn't show my image...
I got as output: Error loading: true which means that there was an error loading the image... I tried to use the getImage() method which takes an URL as parameter, like this:
instead of the tk.getImage("c:\\juba\\used.bmp"); Didn`t work yet... I think I'm gonna migrate to Swing... or even to C# (hehehe) Am I attacking it the right way? I mean, is the problem actually in the path specification? Anybody help, I need it deployed till tomorrow... Thanks much! Juba d-_-b [ November 21, 2002: Message edited by: Jonathas Carrijo ]