A call made to repaint() method would wipe off the existing graphics on the applet and call the paint() method whereas this is not the case with calling paint() method directly.:repaint() is a method belonging to Component class. When it is called, it first callls the update() method and then paint() method.The functionality of update() method is just to wipeoff the image on the component.Inorder to display an image, paint() method is called
Category:Java Interview Questions
No comments:
Post a Comment