What is the purpose of repaint method? When should we use repaint method?- The repaint() method is asynchronous.
- The repaint() requests an erase and redraw (update) after a small time delay.
- When you invoke repaint(), a message is sent to the native GUI requesting it to perform the action sometime in the distant future.
- This method does not invoke paint() method directly.