how to draw a fill rectangle using mouse and paintComponent?

Printable View