communication program blocks interface
843806May 24 2008 — edited May 24 2008Hy,
I am developing an application which consists in a communication between a client and a server.
If no GUI is present, then the application runs perfectly.
Now I put two windows: one for the client and one for the server, both putting information on JTextAreas about the operations the client/server are doing. For the beginning, I have a button that when I click it I want to start the server.
If I press this button, the whole GUI is blocked by the "serverSocket.accept()".
I want to make this application, running without blocking my GUI, (graphic indepent of logic). I suppose it's a problem of threads concurency, but I don't know how to fix it...
Please help!