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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started