Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Networking Assignment I need help creating a UDP chat program in Java. You will have a seperate window for each person you are communicating

Java Networking Assignment

I need help creating a UDP chat program in Java. You will have a seperate window for each person you are communicating with. The window will have as a title the IP address and port number of the person you are messaging with. You will have a main window that allows you to initiate messaging sessions with other people based on their IP address and port number. Once you initiate a new messaging session, you will create a new window for that session. This window should also have a button to exit the program.You will still have the receiving Thread which will handle all the incoming messages. However, your code will also keep track of the source IP addresses and port number along with the window containing that messaging session. If the source IP address and port number combination is a new one, you will have to open a new messaging window. Otherwise, the incoming message will be displayed in the existing window for that source IP address.

Each window will have the following components:

The title of the window should be the IP address and port number of the other side of the messaging session.

A section to display the messaging interaction. This window should contain the messages from both you and the person you are messaging with.

A section for you to type your reply.

A button to send your reply.

A button the close and end the messaging session.

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

More Books

Students also viewed these Databases questions