Thread: java (circle)

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    3

    Question java (circle)

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

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Gee I dunno... This is a C forum ... maybe you should ask in a Java forum....

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    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
    Posts
    1,485
    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 Cprogramming.com
    Replies: 10
    Last Post: 10-05-2004, 02:06 PM
  2. First Java Class at college
    By GanglyLamb in forum A Brief History of Cprogramming.com
    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 Cprogramming.com
    Replies: 26
    Last Post: 06-11-2004, 09:07 PM
  4. Java woes
    By DavidP in forum A Brief History of Cprogramming.com
    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