Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

What impediments originate in society at large?

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago