Asked by

Ricky Rivas
on Oct 27, 2024

verifed

Verified

To draw a rectangle filled with the current color, you can use the method ____.

A) drawRect()
B) fillRect()
C) drawOval()
D) fillOval()

fillRect

In computer graphics, the "fillRect" method is used to draw and fill a rectangle with a specific color or pattern in a graphical user interface.

  • Utilize methods from the Graphics class to render text and geometric figures.
verifed

Verified Answer

DK
dhruv kapoorOct 29, 2024
Final Answer:
Get Full Answer