I have created a jdialog which contains a combobox (see photo ).
The combobox contains items of Delivery class. The date you see in the photo is the value returns from Delivery.toString().
When i press OK, i need to return the Delivery object that is selected from the combobox, to the parent form.