String currentValue = getValue(); if(currentValue == null) currentValue = new String (); currentValue.concat(text); setValue(currentValue);
StringBuffer newValue = new StringBuffer ();  String currentValue; if ( (currentValue = getValue()) != null ) newValue.append(currentValue);  newValue.append(text);  setValue(newValue.toString());
   public void addText (String text) {      String currentValue = getValue();      if(currentValue == null)          currentValue = new String (); // yes, this can happen      currentValue.concat(text);      setValue(currentValue);   }