public void setSelectedItem(@NlsContexts.Label String selectedItem) {
    if (!myItems.contains(selectedItem)) throw new IllegalArgumentException("selected item is not contained in items");
    mySelectedItem = selectedItem;
    setText(selectedItem);
  }
public void setSelectedItem(@NlsContexts.Label String selectedItem)