Adding Elments to JComboBox
- From: "fiqri" <fiqri.ismail@xxxxxxxxx>
- Date: 31 Aug 2005 00:53:45 -0700
Hi All,
I am new to java gui. My requirement is to add elements to jcombobox
with respective values. For an example: I need to display servarl names
in the list if a list item selected a value or an id assigned to it
should out put.
in html i can do this
<select name=cmb>
<option value=100>Bird</option>
<option value=200>Cat</option>
<option value=300>Rabbit</option>
</select>
if you select "Bird" 100 is displayed
i need to accomplish this task using java and jcombobox.
please help on this.
thankx
.
- Follow-Ups:
- Re: Adding Elments to JComboBox
- From: Adin A via JavaKB.com
- Re: Adding Elments to JComboBox
- From: Roedy Green
- Re: Adding Elments to JComboBox
- From: Thomas Weidenfeller
- Re: Adding Elments to JComboBox
- Prev by Date: Re: Using VEP with Eclipse - install problem?
- Next by Date: Re: Adding Elments to JComboBox
- Previous by thread: Using VEP with Eclipse - install problem?
- Next by thread: Re: Adding Elments to JComboBox
- Index(es):
Relevant Pages
|