How to draw a rectangle on a JPanel, from a different class?

Printable View