How to pass data to the paintComponent method?

Printable View