There is an example of how to use threads in post#12. It starts 3 threads to run the server and clients.
Put the code that does the reading inside a thread
Type: Posts; User: Norm
There is an example of how to use threads in post#12. It starts 3 threads to run the server and clients.
Put the code that does the reading inside a thread
Another problem is doing potentially long running code from a listener. The listener runs on the EDT which is where the JVM executes to update the GUI. The long running code should be done on its...
Try flushing the output after writing to it to push the data out of any buffers.
I debug client server apps by running them in one jvm so all output goes to one console so the order of events is...
How are you debugging the code? I don't see anything printed on the console when the code executes.
One possible problem I see is that there are several if statements that do NOT enclose the...
There are missing class definitions.
Please post the code here, not as links to other sites.
Can you make a small, complete program that compiles, executes and shows the problem?