This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Canvas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Canvas " Watch "Canvas " New topic
Author

Canvas

Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
What is canvas in java?
thanks
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
http://java.sun.com/j2se/1.4/docs/api/java/awt/Canvas.html
A Canvas component represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.
An application must subclass the Canvas class in order to get useful functionality such as creating a custom component. The paint method must be overridden in order to perform custom graphics on the canvas.
So if you wanted to design a triangular button for AWT, you might extend the Canvas class.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Canvas
 
Similar Threads
List the receiving mail without Using in Midp2.0?
hi helpme
MouseListener
applet-urgent
BlackBerry Application Developmenet