I want to write some text into a JTextArea
. I think the answer is to extend java.io.Writer
, but I'd like an authoritative answer here; is that the right thing to do?
views:
41answers:
1
+3
A:
You can just use JTextArea.setText(String)
and JTextArea.append(String)
to do this.
tangens
2010-08-31 19:31:04
NICE! thank you!!
Joe
2010-08-31 19:40:25
@Joe Sun/Oracle has very nice tutorials for swiny components: http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html
extraneon
2010-08-31 19:53:22
@extraneon much appreciated!
Joe
2010-08-31 20:01:06