A simple java GUI Code consist of a server , client , and a media for communication as a Socket.