In this example the CoordinatesCanvas class extends the Canvas class to draw the image and fill color as given below in the figure. The following methods is used to draw the image:
In the paint(Graphics g) function the following methods is used to color the image:
Simply the commandAction function is used to exit the current window and the application is as follows:

Source Code of Coordinates.java
import javax.microedition.midlet.*;
|
|
Recommend the tutorial |
Ask Questions? Discuss: Co-ordinates MIDlet Example
Post your Comment