This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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

 
 
subject: Drawing an image
 
It's not a secret anymore!