aspose file tools*
The moose likes Java Micro Edition and the fly likes Problem in displaying images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problem in displaying images" Watch "Problem in displaying images" New topic
Author

Problem in displaying images

Saurabh V Vakil
Greenhorn

Joined: Jan 30, 2008
Posts: 14
Hello ranchers.

I use J2MEWTK 2.1 for writing j2me midlets. When I create a new project in KToolbar, for example DemoApp1, following folder structure is created in the /wtk21/apps directory:

DemoApp1 ----bin
----lib
----res
----src
I want to display an image(say error.png) in my midlet.
My question is where should the png file be placed so that the midlet can find it? I tried saving the image in the /src folder, but when I run the midlet the image doesn't show up.

Regards,
Saurabh.
[ October 06, 2008: Message edited by: Saurabh Vakil ]
Vijesh Vijayanath
Greenhorn

Joined: May 13, 2006
Posts: 26

u have to place the PNG image file in res folder


Thanks,
Vijesh Vijayanath,
Solution Architect - Mobile applications
Saurabh V Vakil
Greenhorn

Joined: Jan 30, 2008
Posts: 14
Originally posted by Vijesh V Nath:
u have to place the PNG image file in res folder


Thanks a lot Vijesh!!!
It worked.

Regards,
Saurabh.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in displaying images