Difference between the paint() and repaint() methods
What is the difference between the paint() and repaint() methods?paint() | repaint() | The paint() method is called when some action is performed on the window. | Whenever a repaint method is called, the update method is also called along with paint() method. | This method supports painting via graphics object. | This method is used to cause paint() to be invoked by the AWT painting thread. |
|