There are lots of bugs in TextArea at the moment.  :-)  But setting a default 
document is probably a good idea. Calling setText("") is a slightly simpler way 
to achieve this.
 
On Thursday, March 19, 2009, at 02:12PM, "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