Originally posted by matt eggbeers:
[QB]I was wondering if there was a way to 'connect' a Input and output stream to a jtextarea?
JTextArea (or any JTextComponent) has
read() and
write() methods.
What I am really trying to do is have a JTextArea behave like the standard in and standard out.
read() calls for a Reader, not an InputStream, but you can convert with
InputStreamReader.
write() calls for a Writer, not an OutputStream, but you can convert with
OutputStreamWriter.