Hi
This sort of problem is fairly common and Java is more than capable of
dealing with it.
I would guess from the questions that you have asked, you need a little
information on both Threads and the networking API.
There are two resources that I would recommend;
1) The Java Tutorial
You create threads by making classes that implement runnable or extend
thread. Calling .start() on those classes will make the code in the run()
method of those classes execute in a new thread. So, that code should be
your network connecting code.
Good place to start is java.sun.com, follow the