This example will show, how to create an image icon to perform the next action or next image from the list every time it's been clicked. So if you want to go from one icon to another icon by the nice sliding effect, you have to run the given example. For developing this application we have inherit canvass class and implement Runnable Interface. The Runnable interface is called from java.lang package and this interface has only one methods which is called: run() method. The function to run the application is as follows which is used in this application:
public void run(){
|
And the following image is created in this application is as follows:
image[0] = Image.createImage("/bollywood-height.png");
|
The Sample of Application is as follows:

Source Code of SlideImage.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: Building a J2ME sliding menu with text and images(part-1) View All Comments
Post your Comment