*/
public XHtmlWidget( HTMLTextAreaElement tae )
{
textareaElement = tae;
if ( htmlDoc == null ) {
DOMService service = null;
try {
service = DOMService.getService( XApplet.getApplet() );
service.invokeAndWait( new DOMAction()
{
public Object run( DOMAccessor accessor )
{
htmlDoc = (HTMLDocument)accessor.getDocument( XApplet.getApplet() );
return null;