How does frame.repaint and paintComponent work?

Printable View