This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drawing an image

 
Iain Palmer
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's Sun's tutorial on 2D graphics: http://java.sun.com/docs/books/tutorial/2d/index.html
 
Iain Palmer
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I'll have a read of the tutorial and should be OK now

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic