Explain the use of repaint ( ).
Answers
Answered by
2
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.
Please mark as the brainliest answer ❤️
Answered by
0
hey mate here is your answer
the paint supports painting via a graphic object the repaint is used to Cause the paint to be invoked by the AWT printing thread it's not necessary to call repaint unless you need to render something specific onto a component
hope it helps
Similar questions
Hindi,
6 months ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago
Physics,
1 year ago