JComponent (final RadComponent ignored, final Integer value, final InplaceContext inplaceContext) { // Find pair if (value == null) { getCbx().setSelectedItem(null); return getCbx(); } final ComboBoxModel model = getCbx().getModel(); for (int i = model.getSize() - 1; i >= 0; i--) { final Pair pair = (Pair)model.getElementAt(i); if (pair.myValue == value.intValue()) { getCbx().setSelectedIndex(i); return getCbx(); } } throw new IllegalArgumentException("unknown value: " + value); }