combo box 1 = red, black, blue, yellow
combo box 2 = cat, fish, monkey, dog
the output i want is :
red monkey or black dog
Maybe you can find the ansewrs in a Tutorial. Here is one: search for combo box or similar and you should find something useful.
just wondering how to solve this. let say if my first jcomboBox have value "1", it will print out to "chicken" without using if else. you have an idea ?
Dave Tolls wrote:There is no single method that will do what you need.
IN the ActionListener method you will need to read the values selected in the two combo boxes and then print them out wherever it is you need to print them out.
So you know how to get the value out of a JComboBox?