Ad Code

Which Component subclasses are used for paint


Which Component subclasses are used for paint

'Canvas' is the subclass of Component that can be used for drawing and painting. But generally Graphics class and its methods are used for drawing and painting. They are quite familiar with Java developers for drawing and painting. Canvas and Graphics have some common methods that are inherited from Component like paint(),update() etc. but Graphics class provides more facilities to a programmer with its methods.
Reactions

Post a Comment

0 Comments