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





On Jan 28, 2:55 pm, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
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/

Thanks. Makes perfect sense, just like a console app with C or C++.
(Don't know why I didn't think of that! DOH!)

.



Relevant Pages