Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Canvas

As the name indicates a Canvas is a region where you can draw things such as circles, triangles, ovals or any other shape. Basically it is a graphical component that represents a region.

Tutorial Details:

As the name indicates a Canvas is a region where you can draw things such as circles, triangles, ovals or any other shape. Basically it is a graphical component that represents a region. It has got a default method which is paint() method. Canvas class can be sub classed to override this default method to define your own components as shown below in the example.


 

Rate Tutorial:
http://www.roseindia.net/java/example/java/awt/canvas.Shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Canvas

View Tutorial:
Canvas

Related Tutorials:

Agents: Not just for Bond anymore - JavaWorld April 1997
Agents: Not just for Bond anymore - JavaWorld April 1997
 
Device programming with MIDP, Part 2 - JavaWorld March 2001
Device programming with MIDP, Part 2 - JavaWorld March 2001
 
Embed Java code into your native apps - JavaWorld May 2001
Embed Java code into your native apps - JavaWorld May 2001
 
Remote-control Java
Remote-control Java
 
J2ME devices: Real-world performance
J2ME devices: Real-world performance
 
Game Canvas Basics
Introduces the MIDP 2.0 GameCanvas class and the game loop concept. Required reading for all aspiring "first person shooter" developers.
 
Writing a Custom Counter Component
MIDP 2.0 introduced the javax.microedition.lcdui.CustomItem class. As the name implies, a developer can now create custom UI components by extending the CustomItem class. This tech tip designs and implements a UI component for displaying a numeric counter
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.