code: public void setSelectedValue (E value)
      {
          String valstr = value.toString();
          for (int ii = 0; ii < getItemCount(); ii++) {
              if (getValue(ii).equals(valstr)) {
                  setSelectedIndex(ii);
                  break;
              }
          }
      }
docs: Selects the specified value.