File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Drawing an image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Drawing an image" Watch "Drawing an image" New topic
Author

Drawing an image

Iain Palmer
Ranch Hand

Joined: Jul 28, 2004
Posts: 56
I am writing a program that asks the user to input how many sides it has it then tells the user the shape, but i want to then draw the shape. I think I want to use the graphicsclas in the AWT package but am unsure how to go about it.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Here's Sun's tutorial on 2D graphics: http://java.sun.com/docs/books/tutorial/2d/index.html


There is no emoticon for what I am feeling!
Iain Palmer
Ranch Hand

Joined: Jul 28, 2004
Posts: 56
Thanks I'll have a read of the tutorial and should be OK now

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drawing an image