Forums Register Login

Swing + JComboBox

+Pie Number of slices to send: Send
Hi Friends,
I have three combo boxes and the data to be displayed in 2nd depends what is selected in 1st similarly 3rd combo data depends on 2nd. so i want it dynamic. I searched API's but I found no method to do this.

what should be the solution.
+Pie Number of slices to send: Send
Hi
Why don't you get the item selected
from the first combo box then make a
condition so that when an item is selected
from the first combo box what is suppose to
be displayed in second combo box is displayed.
Hope it works
+Pie Number of slices to send: Send
here's a simple demo
(you could do this with just the one combo box if you wanted)

Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 901 times.
Similar Threads
Dependatable fields on
dependent combo
add item in jcombobox from database
Without refreshing the page
Combo Box
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:57:21.