using the setSize and setLocation methods of Rectangle class

Printable View