CGS is a project mainly written in Java, it's free.
Client Game System
On-line multiplayer game client...