Java Applet Programming Question:

Why do you Canvas?

Tweet Share WhatsApp

Answer:

The Canvas class of java.awt is used to provide custom drawing and event handling. It provides a general GUI component for drawing images and text on the screen. It does not support any drawing methods of its own, but provides access to a Graphics object through its paint() method. The paint() method is invoked upon the creation and update of a canvas so that the Graphics object associated with a Canvas object can be updated.

Download Java Applet PDF Read All 26 Java Applet Questions
Previous QuestionNext Question
What is Difference between AWT and Swing?What type of sound file formats can I use for the applets?