This application illustrates how to create the image and imageItem using Image and ImageItem class respectively. In this example we are going to create an image using Image Class and imageItem using ImageItem class. In the following source code you can see it:
Image image = Image.createImage("/sunrise.png");
ImageItem = new ImageItem("This is the IMAGE_ITEM Application", image, ImageItem.LAYOUT_DEFAULT, "image");
The Application is as follows:

ImageItemMIDlet.java
import javax.microedition.lcdui.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: J2ME Image Item Example
Post your Comment