Friday, 26 February 2016


java.net lesson 3 : 

creating a server and three clients and make the server receive a message and echo it back to all the clients connected to the server in the chat room application. 


In the MultithreadedChatClient.java file we create three clients and connect them to the server in the file MultithreadedChatServer.java to make a simple chat application. The three clients have separate GUIs of their own and each client can send message to the server but the server echoes back the meassage of any client to all the clients. Therefore, the message sent by any client is seen by all th eclients in the chatroom i.e,. a JTextArea. 

To see the code please click here.

No comments:

Post a Comment