File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "java shapes" Watch "java shapes" New topic

java shapes

hadeel marghlany

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

Joined: Oct 13, 2005
Posts: 46375
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.
I agree. Here's the link:
subject: java shapes
It's not a secret anymore!