Tuesday, March 19, 2013

Add image in J2ME apps


1) Create a folder (res) in your project directory
2) put images under it
3) add this folder in resource (right click on the resource from project window > add  folder ( res)
4) Add below code in app
          Image image = Image.createImage("/rd.PNG");
         MainForm.append(new ImageItem(null, image, ImageItem.LAYOUT_CENTER, null));

No comments:

Post a Comment