Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cross posted: http://forums.sun.com/thread.jspa?threadID=5427332&tstart=0

Be Forthright When Cross Posting To Other Sites
 
Alam Ikenna
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

Be Forthright When Cross Posting To Other Sites



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.
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic