Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 2 of 2 FirstFirst 12
Results 26 to 27 of 27

Thread: How to fix this code?

  1. #26
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,267
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: How to fix this code?

    Quote Originally Posted by ice View Post
    Thank you a lot copeg, your suggestion of "replace fillPolygon with drawPolygon" is so useful, I can see it is a line now. But how to change those coordinates to show a octagon?
    Draw it out on a sheet of paper and define the appropriate coordinates. See Drawing Arbitrary Shapes

  2. The Following User Says Thank You to copeg For This Useful Post:

    ice (November 29th, 2010)

  3. #27
    Member ice's Avatar
    Join Date
    Nov 2010
    Location
    New Zealand
    Posts
    60
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: How to fix this code?

    Thanks a lot copeg, I just drawed Octagon and finally solved my 2 problems.

Page 2 of 2 FirstFirst 12