Results 1 to 7 of 7
- 02-02-2011, 03:01 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 8
- Rep Power
- 0
- 02-02-2011, 03:04 PM #2
The easiest way to do it is probably to create a Polygon with the points you use to create the lines, then just use that to draw or fill instead of the lines.
Google is your friend, but here's a good start: Polygon (Java Platform SE 6)How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 02-02-2011, 03:17 PM #3
Member
- Join Date
- Dec 2009
- Posts
- 8
- Rep Power
- 0
Oh thank you this would be useful. I also need a parallelogram in which two sides are straight line the other sides needs to be curved (like an arc)? Can I also draw this shape with using Polygon methods?
like this:
- 02-02-2011, 03:19 PM #4
Member
- Join Date
- Dec 2009
- Posts
- 8
- Rep Power
- 0
- 02-02-2011, 03:22 PM #5
Most people won't click external links like that. But you might want to give this tutorial a read-through: Lesson: Advanced Topics in Java2D (The Java™ Tutorials > 2D Graphics)
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 02-02-2011, 03:28 PM #6
Member
- Join Date
- Dec 2009
- Posts
- 8
- Rep Power
- 0
I tried to link an image to show my figure but I couldn't upload an image it asked me an "url" address that's why I included an external link. Thank you for the tutorial.
- 02-02-2011, 03:33 PM #7
It's not a big deal, it's just that some people will hesitate for fear of viruses, or others (like myself) might have sites like that blocked by school or work networks. ASCII art is sometimes best, heh.
I hope that tutorial helps. Let us know if you still have questions- and feel free to post an SSCCE that shows us where you get stuck.How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
Similar Threads
-
Filling a JTable
By aborgeld in forum Advanced JavaReplies: 0Last Post: 01-08-2011, 01:37 PM -
Filling Arrays??
By Bgreen7887 in forum New To JavaReplies: 8Last Post: 11-04-2010, 06:51 AM -
need some urgent help for drawing random points inside a rectangle
By pranav21_1983 in forum Java AppletsReplies: 2Last Post: 04-10-2010, 06:35 PM -
I have a problem filling out this method
By kira137 in forum New To JavaReplies: 6Last Post: 10-11-2009, 01:43 AM -
Filling 2D Array
By Nakira in forum New To JavaReplies: 3Last Post: 11-12-2008, 12:43 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks