Thread: java (circle)

  1. #1
    Registered User
    Join Date
    Mar 2011

    Question java (circle)

    in java to draw a circle required 4 parameters ....what this parameter means like for c to draw a circle syntax is circle(x,y,radius)
    bt in java
    syntax :
    what 70,90,200,200 means?????

  2. #2
    Join Date
    Aug 2010
    Ontario Canada
    Gee I dunno... This is a C forum ... maybe you should ask in a Java forum....

  3. #3
    Registered User
    Join Date
    Sep 2006
    I know zip about Java, but I'd hazard a guess that 70 and 90 are the x and y coordinates of the center point of the circle.

    And the clue I'm working off of is the word "Oval", instead of "circle".

    The next two numbers are the maximum distance of the circle, in the x (first number) and y (second number), directions. Enabling it to draw an oval or a circle.

  4. #4
    Registered User
    Join Date
    Jan 2009
    Google pointed me straight to the java docs:

    Graphics (Java 2 Platform SE v1.4.2)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C#, Java, C++
    By incognito in forum A Brief History of
    Replies: 10
    Last Post: 10-05-2004, 02:06 PM
  2. First Java Class at college
    By GanglyLamb in forum A Brief History of
    Replies: 24
    Last Post: 09-29-2004, 10:38 PM
  3. The Java language is being expanded
    By DavidP in forum A Brief History of
    Replies: 26
    Last Post: 06-11-2004, 09:07 PM
  4. Java woes
    By DavidP in forum A Brief History of
    Replies: 15
    Last Post: 07-06-2003, 12:37 AM
  5. point lies in circle?
    By cozman in forum Game Programming
    Replies: 3
    Last Post: 12-20-2001, 04:39 PM