The example illustrates how to draw the different types of rectangle in J2ME. We have created CanvasRectangle class in this example that extends to the Canvas class to draw the given types of rectangle. In this figure first two rectangle draw from the solid and dotted line and the other two rectangle draw as round Rectangle shape. To draw these types of rectangle we are useing following methods:
The Application is as follows:

Source Code of RectangleCanvas.java
import javax.microedition.midlet.*;
|
|
Recommend the tutorial |
Ask Questions? Discuss: Rectangle Canvas MIDlet Example View All Comments
Post your Comment