Computer Science, asked by sonty9589, 1 year ago

Explain the use of repaint ( ).

Answers

Answered by Anonymous
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 ishita7935
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