I have populated a ComboBox from a DB query. It all populates and displays as expected. I display this on a form and can bind it. I need the same ComboBox on another form too, but i don’t want to go a fetch the contents from the DB again. I need a way whereby i can create a new ComboBox and assign the old to it, BUT have the ability to set some differences on the second (different Caption etc). How can i clone the ComboBoxes at run time so they are distinct after being populated (and not copied by reference)?
Note, i have tried combo2.setContainerDataSource(combo1.getContainerDataSource()) without success as the display values aren’t maintained…