How to draw a rectangle in the JPanel by inserting the X and Y

Printable View