Question: Consider the code we presented in class on Week 4 (Lecture 4) which consisted of a P2P Client/Server application. In this problem you are required

Consider the code we presented in class on Week 4 (Lecture 4) which consisted of a P2P Client/Server application. In this problem you are required to add a simple improvement on the P2PClient code to make it start with a simple JFrame Coun asking the user to enter the IP Address of the P2P Server, the Port number the P2P Server is listening on, and the name of the Client (to be displayed in the chatting messages). The form could be something like this: Server IP Address: 127.0.0.1 5555 Port Number: Client Name: Wassim Submit ServerHi Wassim wassim comment ca va? Send When the client submits the form, the actual client chatting window should appear and connect to the P2P Server. Hint: Send the variables from the jTextFields of the first form as a constructor arguments to the second form. Consider the code we presented in class on Week 4 (Lecture 4) which consisted of a P2P Client/Server application. In this problem you are required to add a simple improvement on the P2PClient code to make it start with a simple JFrame Coun asking the user to enter the IP Address of the P2P Server, the Port number the P2P Server is listening on, and the name of the Client (to be displayed in the chatting messages). The form could be something like this: Server IP Address: 127.0.0.1 5555 Port Number: Client Name: Wassim Submit ServerHi Wassim wassim comment ca va? Send When the client submits the form, the actual client chatting window should appear and connect to the P2P Server. Hint: Send the variables from the jTextFields of the first form as a constructor arguments to the second form
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
