java.sun.com-> api->1.4->java.awt

解决方案 »

  1.   

    public abstract void drawOval(int x,
                                  int y,
                                  int width,
                                  int height)Draws the outline of an oval. The result is a circle or ellipse that fits within the rectangle specified by the x, y, width, and height arguments. 
    The oval covers an area that is width + 1 pixels wide and height + 1 pixels tall. 
    Parameters:
    x - the x coordinate of the upper left corner of the oval to be drawn.
    y - the y coordinate of the upper left corner of the oval to be drawn.
    width - the width of the oval to be drawn.
    height - the height of the oval to be drawn.