Use getText() add "\n" and new text and set it back.
-vanita.
> Hi,
> I have this application that uses a JTextArea component. I need to append
> text to the area. That is I want to ensure that every time text is
inserted
> it does not replace the original text as in setText("xxxxx") but I want to
> insert the new text on a new line.
> Anybody got any ideas
>
> _______________________________________________
> Swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/swing
>
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing