This type of example is basically used in touch screen technology, here we are trying to create a pointer which location is based on the screen touch pointer. The source code for this small example of touch screen application.
public void pressPointer (int x, int y) {
|
is used to initialize the pointer location when pressed. The source code
public void releasePointer (int x, int y) {
|
is used to released the pointer from his location. And the source code
public void dragPointer (int x, int y) {
|
is used when repeating the pointer, then it relocate the location of the pointer. The Application is as follows:

Source Code of PointerExample.java
import javax.microedition.midlet.*;
|
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: Pointer Example View All Comments
Post your Comment