Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in displaying images

 
Saurabh V Vakil
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u have to place the PNG image file in res folder
 
Saurabh V Vakil
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic