Forums Register Login

On button click populate combobox

+Pie Number of slices to send: Send
Hi All,
My scenario is when I click a button I connect to DB fetch the records and populate the combo box.

I am able to retrieve the data from db but not able to populate the combo box.

Please suggest.

Veda
+Pie Number of slices to send: Send
Create a new DefaultComboBoxModel with the elements, then set that model for the combo box (setModel).
+Pie Number of slices to send: Send
Thank you so much Rob. It worked
+Pie Number of slices to send: Send
You're welcome.
I was born with webbed fish toes. This tiny ad is my only friend:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2171 times.
Similar Threads
populate the select when page is displayed first time
Populating Combo Box using one of the fields in oracle
combobox is not updating in Swing GUI
Search fields
Swings
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:03:26.