JavaApplet zusätzliche Kreise auf dem Bildschirm drucken

Ich bin neu in diesem Bereich. Ich versuche, einen Kreis in einem JavaApplet zu zeichnen, aber irgendwie zeigt es in der Ausgabe 3 Kreise. Irgendeine Idee

import javax.swing.JApplet;
import java.util.*;
import java.awt.*;

public class Shapes extends JApplet
{
    public void paint (Graphics page)
    {
        resize(400,300);
        Random rand = new Random();

        // Declare size constants
        final int circleMax = 160,circleMin = 40; // circle max and min diameter
        final int locMaxX = 360, locMaxY = 260;
        int radiusSize = 0, locationx = 0,locationy = 0 ;

        // Declare variables
        radiusSize = (rand.nextInt(circleMax)+ circleMin); 
        locationx =20 ;//rand.nextInt(locMaxX)+ 20;
        locationy =20 ;// rand.nextInt(locMaxY) + 20;

        // Draw the circle 1
        page.drawOval(locationx, locationy, radiusSize,radiusSize);
    }
}

Antworten auf die Frage(4)

Ihre Antwort auf die Frage