java draw a circle with drawoval code example
Example 1: awt draw circle
public void drawCenteredCircle(Graphics2D g, int x, int y, int r) {
x = x-(r/2);
y = y-(r/2);
g.fillOval(x,y,r,r);
}
Example 2: java create circle
// x position, y position, x size, y size.
ellipse(0, 0, 100, 100);