How can I get a single line of text of a textarea?
So like if I had
"Hello
Mellow
Yellow"
Then line 1 would be Hello and line 2 would be Mellow ect.
How can I get that?
Something like:
JTextArea area = new JTextArea();
System.out.print(area.getLineOfText());
Thanks.