public VariableValue findVar(String name){
  for (int i=0; i < getRowCount(); i++) {
    if (name.equals(getItem(i))) {
      return getVariable(i);
    }
    if (name.equals(getLabel(i))) {
      return getVariable(i);
    }
  }
  return null;
}

public VariableValue findVar ( String name ) { for ( int i = 0 ; i < getRowCount ( ) ; i ++ ) { if ( name . equals ( getItem ( i ) ) ) { return getVariable ( i ) ; } if ( name . equals ( getLabel ( i ) ) ) { return getVariable ( i ) ; } } return null ; }
returns the ( first ) variable that matches a given name string . searches first for " item " , the true name , but if none found will attempt to find a matching " label " . in that case , only the default language is checked .
