David has answered your question.
Swing is desktop technology and servlets are server technology.
If they are to communicate it will have to be over HTTP.
The easiest way is to make your swing app a web client.
The easiest way to do that is to use the libraries in the link that David has already given you.
Check out the HTTP Client in the Apache Commons libraries in http://jakarta.apache.org