paintComponent() instead of paint()

Printable View