Win a copy of The Java Performance Companion this week in the Performance 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: 2600
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic