Re: New line in a JTextArea (student learning here)



Sandy wrote:
How does one append to a JTextArea in such a way to tell it that you want this on a new line?

Thanks.


JTextArea ta = new JTextArea();

ta.append("I want a new line at the end\n");

--

Knute Johnson
email s/nospam/knute/
.