I should read all my messages before responding. Calling setText("") is the 
right approach - though it sounds like that method needs to be fixed.

In any case, I'd recommend not using TextArea until we are closer to the actual 
1.1 release. It is not considered stable at the moment.
 
On Thursday, March 19, 2009, at 03:08PM, "John Pritchard" <[email protected]> 
wrote:
>revision.. (patch attached)
>
>we need
>
>setText("")
>
>or equivalently
>
>setText(null)
>
>to work
>
>
>
>On Thu, Mar 19, 2009 at 2:12 PM, John Pritchard <[email protected]> wrote:
>
>>
>> Hi,
>>
>> The change to TextArea would be a bug, as far as i know.
>>
>>     public TextArea() {
>>         installSkin(TextArea.class);
>> <<<<<<< .mine
>>
>>         Document document = new Document();
>>         document.add(new Paragraph());
>>         this.setDocument(document);
>> =======
>>         setText("");
>> >>>>>>> .r756120
>>     }
>>
>> I tried this and ran into problems with Document TextNode not being able to
>> calculate Bounds for an empty node.  However, installing an empty Paragraph
>> worked flawlessly.
>>
>> /john/
>>
>>
>

Reply via email to