Javatpoint Logo
Javatpoint Logo

Java AWT Canvas

The Canvas control represents a blank rectangular area where the application can draw or trap input events from the user. It inherits the Component class.

AWT Canvas class Declaration

Java AWT Canvas Example

Output:

java awt canvas example 1
Next TopicJava AWT Scrollbar




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA