The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
June 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

java combobox

Posted by ravi on October 04, 2000 at 2:58 PM

> Hi !!!

> I have a problem !
> First I choose a name in a combobox.Then I press a button.
> When I press the button I want to load a picture in the picturebox
> depending on what name I choose in the combobox.

> I.E :

> Hi !!!
> In my ComboBox I choose e.g. person1.That will get me
> the image1-picture.
> Every person has his own picture.
> If I select person2 in the comboBox I should get
> the image2, which I want to be showed into the
> pictureBox.
> ***
> person1==>image1 ; person2==>image2 etc...
> ***
> All the action will happen when I press the button:
> I start with comboBox.getText()
> If the text/string equals the personX I get the
> imageX from my drive (or should the image be into the
> project ?) HOW ???
> Now I want the image1 to be placed into the pictureBox
> ***
> I suppose this is the sequence to do the above !!!
> BUT how do I write the code !

> How do I do this ?

> a beginner who need some help And I use MS vs J++, MS WFC comp.

> // Toni






Replies:
  • combobox Ethsham Arshad January 09, 2002 at 11:37 AM (0)
  • The method :) Yannick DAMBIELLE October 03, 2001 at 7:17 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us