File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Help with drawing random shapes based on JComboBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help with drawing random shapes based on JComboBox" Watch "Help with drawing random shapes based on JComboBox" New topic
Author

Help with drawing random shapes based on JComboBox

Mike Williams
Greenhorn

Joined: Jan 30, 2004
Posts: 7
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

Joined: Jan 14, 2004
Posts: 1535
Mike Williams
Greenhorn

Joined: Jan 30, 2004
Posts: 7
Thanks to the person who helped me, i figured out my other minor problem.
[ January 31, 2004: Message edited by: Mike Williams ]
 
jQuery in Action, 2nd edition
 
subject: Help with drawing random shapes based on JComboBox