Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By DarrylBurke

Thread: Problem with making ring of circles in java?

  1. #1
    Kratos321's Avatar
    Kratos321 is offline Member
    Join Date
    May 2011
    Posts
    31
    Rep Power
    0

    Unhappy

    ok so i wrote a program
    Last edited by Kratos321; 05-28-2011 at 09:41 PM.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    Default

    AFAIK pixels are only whole units. If there were paritial pixels then making a line 12.34 pixels long would be possible.
    Since the graphics context that you draw in is a two dimensional array, it is not possible to draw a smooth circle.

    Can you show some examples of overlap or gap in the circle ring?

    There many be other classes that allow doubles for drawing.

  3. #3
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    Default

    You are using third party software. Can you use Standard Java classes?

    See:
    http://www.java-forums.org/misc.php?do=bbcode#code


    One of the icons will provide the tags

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    Default

    What is this: import hsa.Console;

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    Default

    I can't compile the code without a definition of that class.

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    Default

    Ok. I'll let someone with that package try to help you. I don't have it.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default

    Kratos321, please don't edit your posts and remove all content, nor delete them. Doing so renders the discussion meaningless to anyone who reads it later.

    db
    Fubarable likes this.

Similar Threads

  1. Josephus Ring , need help understanding
    By trinity in forum New To Java
    Replies: 1
    Last Post: 04-14-2011, 03:54 PM
  2. Draw circles, select circles
    By cselic in forum Java 2D
    Replies: 2
    Last Post: 05-17-2010, 02:02 PM
  3. Replies: 5
    Last Post: 06-26-2009, 03:03 AM
  4. Replies: 4
    Last Post: 09-13-2008, 11:07 AM
  5. Ring Shaped Shell in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 02:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •