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:
|