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

Draw a Shape by selecting(combox) its color and clicking a button

 
Alam Ikenna
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day all,

Kindly show me how i can choose a color from a combo box, click on any labeled button(say rectangle or circle) and it draws that shape(say rectangle). Also when I click on the other button(Circle), it removes the Rectangle that was drawn and replaces it with a Circle.

Thanks
Alam Ikenna
 
Rob Camick
Ranch Hand
Posts: 2564
9
 
Alam Ikenna
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Thanks for the correction. I never thought of it that way. As a matter of facts, I join forums for the purpose of learning. This has shown me a great lesson, but i plead that this incident will not stop you or any other person from helping me out. I really need your supports to learn more.

Thanks
Alam Ikenna.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Kindly show me how i can choose a color from a combo box,
> click on any labeled button(say rectangle or circle) and it draws that shape(say rectangle).
> Also when I click on the other button(Circle), it removes the Rectangle that was drawn and replaces it with a Circle.

so, what's the problem?

you can't make a selection from a comboBox?
you can't click a button?
you can't draw a shape?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic