@@ -0,0 +1,1194 @@
+package de.alpharogroup.swing.bind;%0A%0Aimport java.awt.ItemSelectable;%0Aimport java.awt.event.ItemEvent;%0Aimport java.awt.event.ItemListener;%0A%0Aimport javax.swing.ComboBoxModel;%0A%0A/**%0A * The listener interface for receiving itemBind events.%0A * The class that is interested in processing a itemBind%0A * event implements this interface, and the object created%0A * with that class is registered with a component using the%0A * component's %3Ccode%3EaddItemBindListener%3Ccode%3E method. When%0A * the itemBind event occurs, that object's appropriate%0A * method is invoked.%0A *%0A * @param %3CT%3E the generic type%0A * @see ItemBindEvent%0A */%0Apublic class ItemBindListener%3CT%3E implements ItemListener %7B%0A%09%0A%09/** The model. */%0A%09private ComboBoxModel%3CT%3E model;%0A%0A%09/**%0A%09 * Instantiates a new %7B@link ItemBindListener%7D.%0A%09 *%0A%09 * @param model the model%0A%09 */%0A%09public ItemBindListener(ComboBoxModel%3CT%3E model) %7B%0A%09%09this.model = model;%0A%09%7D%0A%0A%09/**%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@SuppressWarnings(%22unchecked%22)%0A%09@Override%0A%09public void itemStateChanged(ItemEvent e) %7B%0A%09%09ItemSelectable is = e.getItemSelectable();%09%0A%09%09Object selected%5B%5D = is.getSelectedObjects();%0A%09%09T sel = (selected.length == 0) ? null : (T) selected%5B0%5D;%0A%09%09model.setSelectedItem(sel);%0A%09%7D%0A%0A%7D%0A

Create ItemBindListener.java