Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

communication program blocks interface

843806May 24 2008 — edited May 24 2008
Hy,

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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2008
Added on May 24 2008
1 comment
100 views