Graphics.filloval()
时间: 2024-05-07 22:22:01 浏览: 113
填充图案
`Graphics.filloval()` is a method in Java's `java.awt.Graphics` class that is used to draw a filled oval on a graphical component.
The syntax for `fillOval()` is as follows:
```
public abstract void fillOval(int x, int y, int width, int height)
```
Here, `x` and `y` specify the coordinates of the upper-left corner of the oval, `width` and `height` specify the dimensions of the oval.
When called, this method will fill the specified oval with the current color of the Graphics object.
阅读全文