What is the difference between the paint() and repaint() methods?

Q

What is the difference between the paint() and repaint() methods?

✍: Guest

A

The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.

2012-07-26, 2229👍, 0💬