[Bluej-discuss] JTextArea class

Ian Utting I.A.Utting at kent.ac.uk
Wed Jul 12 12:33:46 BST 2006


Luis -

> I implemented everything except the clearTextArea() method, because I 
> can not find a way of doing it. I was expecting to find a method on the 
> class JTextArea that did that but I can not find it

The method setText(String) (inherited by JTextArea from JTextComponent) 
replaces the current text in the component. If the parameter is empty 
("") or null, the old text is deleted. It looks like this should do what 
you want?

Ian.


More information about the bluej-discuss mailing list