View Full Version : P800(UIQ) problem with images!


14-06-2003, 11:53 AM
I have been pulling my hair over this... I just wanted to do a simple app which shows a image, sounds easy right ?... well, it is, problem is that the emulator wont draw my image.. it works when you just run it as a simple pJava application but it wont show my image in emulator mode...

The problem seems to be that the emulator does not find my image, because when I print out the size of the image it is -1 when I am running the emulator but the "real" pJava app prints out the correct size.

To fetch the image I use : imgLogo = Toolkit.getDefaultToolkit().getImage("julian.gif");

I have tried it with ".\\" and "./" also, did not solve anything

Anyone that has had problems with this ?

Thanks

15-06-2003, 07:29 AM
I use Codewarrior Wireless Studio if it helps...

Cruizer
16-06-2003, 07:56 PM
Is your image located in the same place where your .class file is? And the classpath points to that directory?

Regards,

/Cruizer.

19-06-2003, 11:37 AM
Thanks for answering...

The problem is probably that the application is run from the .jar file and I cant get CodeWarrior to include my image-file to the .jar file...

Any clues?

Thanks