Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes java shapes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java shapes" Watch "java shapes" New topic
Author

java shapes

hadeel marghlany
Greenhorn

Joined: Feb 21, 2013
Posts: 12
i have a homework to draw a circle, triangle, oval, hexagon, pentagon, octagon, square in java netbeans
but i have no idea how to use there functions or librarys please can you give me good links that can get me started
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43392
    
  32
I trust you are familiar with the Java Tutorials. There will be a section about what you need. Also look at the methods of the Graphics and Graphics2D classes.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java shapes
 
It's not a secret anymore!