As you already aware of the canvas class and it's use in J2ME application, we are using canvas class to draw the triangle on the screen. In this example you will learn how to draw a triangle and filling it with particular color.
Output of the draw triangle application will look like as follow...
Source code to draw a triangle in J2ME
file name DrawTraingle.java
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial