That is by design. Allowing null values made the implementation more complex than it needed to be (since the empty string can be used for the same purpose). The same is not necessarily true for TextPane, though we may want to revisit this and also not allow null values for the "document" property.
On Sep 15, 2010, at 9:20 AM, Chris Bartlett wrote: > One quick thing is that setText(null) now throws an > IllegalArgumentException, but previously it would clear the existing text. > > I'll take a proper look ASAP & report back. > > Chris > > On 11 September 2010 20:22, Greg Brown <[email protected]> wrote: > >> Hi all, >> >> The new plain-text TextArea is now checked in to trunk. I have tested it in >> our existing demo and tutorial applications, but I'm sure I probably missed >> a few things. Any feedback would be very much appreciated. >> >> Thanks! >> Greg >> >>
