public TextEditor(CharSequence text){
  this.text=new StringBuffer(text.toString());
}

public TextEditor ( CharSequence text ) { this . text = new StringBuffer ( text . toString ( ) ) ; }
create a new texteditor based on the contents of a string or stringbuffer .
