Question: Build a CHAT program, similar to a text - messaging app, to send text messages back and forth. NOTDE You can work with other students
Build a CHAT program, similar to a textmessaging app, to send text messages back and forth. NOTDE You can work with other students in this class on this project if you want, but each student needs to turm in their own code for this MiniProject.
That is you will build programs, a clientChatclientjava and a serverChatServerjava If you enter a String on the Server and fit the Send Button, your code will send the Test to the Client, then, the Client will display the Message it received.
You will need to build a Java FX Gui for this project....you will also need to use Sockets to send the text across the network.....and I would also use Threads....the new Thread you make will wait for data to come in and display it in the GUI TextArea.
Writing the Coile:
a The GUI: Both the server program and the Client Program will have the exact same GUI. The both will have a TextArea at the topTo display incoming messages a Texirield at the bottomfor sending messages and also a Send Buttonevent to send the data from the Textrield down the network
D Receiving Datas Use a Thread to wait for data to come down the Socket.
c Seniling Datfis Use a Ieura ProU Event to send the data down the Socket.
Testing the APPi
A Rin ineswer irst then rum the clients When the user types in some text in the Texifield of the Server Program, and hits the Send bution, the text will be delivered to the Textarea of the Client program. And viceversa.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
