• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with drawing random shapes based on JComboBox

 
Mike Williams
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a JFrame that has a JComboBox at the bottom with the following items in it: "Circle", "Oval", "Rectangle", and "Square"
Then once the user selects a shape from the box, it will draw 20 random types of that shape.
This is the code I have so far, it's more like a skeleton, cause im kind of lost.

I hope i made everything clear, can anyone help me?
[ January 30, 2004: Message edited by: Mike Joe ]
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mike Williams
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to the person who helped me, i figured out my other minor problem.
[ January 31, 2004: Message edited by: Mike Williams ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic