I have dialog box looks like the following:
and have following classes to bind the components in the form
I would like to bind DeliveryScheduleBean.comapany with the item selected in JCombobox with Comapany objects, displaying name. JCombobox is populated with Company objects retrieved from database, and JList is populated with Date objects available for the selected company from the JCombobox.Code:class DeliveryScheculeBean { private Company company; private List<Date> deliveryDates; } class Company { private String name; private Address address; } class Address { private String street; private String city; private String state; private String zipCode; }
when user click on OK button, how do I get the DeliveryScheduleBean pupulated with selected company object, and available dates in the JList using TitledPageDialogBox.
looking for example binding of combobox, and jlist.



Reply With Quote
