Java-Rectangles

drawRect We can draw a rectangle using the drawRect( ) method. This method takes four arguments. The first two represent the x and y coordinates of the top left corner of the rectangle, and the remaining two represent the width and the height of the rectangle. fillRect We can draw a solid box by using … Read more…