Java TCP Server
<p>I'm building a GUI application which needs to have a TCP Server running. The GUI is built in Swing. The trouble I'm having is running the server. I want to have one desktop application people can install, that will in turn start the server for me. The server is blocking while it runs ie:</p>

<pre><code>while (true) {
     Socket client = serverSocket.accept();
     System.out.println("S: Receiving...");
</code></pre>

<p>....</p>

<p>I tried to call the server class, but then it blocks the GUI. What do you think is the best way to separate the Server from the GUI, while easily being able to package both together? Thanks for any help!</p>
