Question: CHAT Application Build a CHAT program. That is you will build 2 programs, a client(ChatClient.java) and a server(ChatServer.java). The server program will have a JTextField

CHAT Application

Build a CHAT program. That is you will build 2 programs, a client(ChatClient.java) and a server(ChatServer.java). The server program will have a JTextField at the bottom and a JTextArea at the top, also a Send Button. The client program will have the same. When the client user types in some text in the JTextField and hits the Send button, the text will be delivered to the JTextArea in the Server program. And vice versa. You will need to use Sockets and Streams, of course, as well as GUI components and GUI events. You will also need to use Threads. One thread for the send direction(main Thread) and one Thread for the receive direction(new Thread you create).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!