problem sending strings between two TextArea's each one a thread
Hi all, I have been having problems with a simple message program, i created the program to practice using threads, swing and pipe streams.
The program has two consoles each containing a TextArea each one a Thread.
There are a pair of PipedReader/Writers to send the text represented as a String between TextAreas.
Each console has an pipeOut and pipeIn attribute reading and writing to the pipe.
I wanted to have each program polling the pipe for text being sent but failed to achieve this , just ended up with a TextArea repeatedly filling with the same message sent.
So decided to pass a reference of the other console and call its read method when I sent a message. (did not like this solution but wanted to be able to receive a message on the opposite console)
But once I get the text into the other consoles read method I can not .append it to the TextArea but I can System.out.println();
This is really bugging me and any advice would be great many thanks.
martin

