How does repaint work in combination with paintComponent (Graphics class)?

Printable View