views:

41

answers:

1

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?

+3  A: 

You can just use JTextArea.setText(String) and JTextArea.append(String) to do this.

tangens
NICE! thank you!!
Joe
@Joe Sun/Oracle has very nice tutorials for swiny components: http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html
extraneon
@extraneon much appreciated!
Joe