Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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