Chat progr : printwriter problem



Hi,

I'm currently writing a chat program, and I have some problems with getting
end sending text. I have a thread that reads a text line and sends it to
the server or to my output window; depending on what arguments i enter.
My arguments in the class of the tread are a BufferedReader and a
PrintWriter. But what should I give as argument in PrintWriter an
BufferedReader??
Not System.out or System.in, because that's for command-line stuff..
I have a string from my JTextField that must be submitted.

Can anyone help me?
--Christophe.
.