IntelliJ open source
[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Swing / AWT / SWT / JFace
 
RSS feed
 
New topic
Author

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

Alam Ikenna
Greenhorn

Joined: Mar 26, 2008
Messages: 16

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

Joined: Jun 13, 2009
Messages: 694

Cross posted: http://forums.sun.com/thread.jspa?threadID=5427332&tstart=0

Be Forthright When Cross Posting To Other Sites
Alam Ikenna
Greenhorn

Joined: Mar 26, 2008
Messages: 16



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
Rancher

Joined: Jun 09, 2003
Messages: 3099

> 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?
 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Swing / AWT / SWT / JFace
 
RSS feed
 
New topic
IntelliJ open source