Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Write a chat room application that allows multiple users to connect to the chat server. Before the user is able to see the chat

JAVA

Write a chat room application that allows multiple users to connect to the chat server.

Before the user is able to see the chat window, each user needs to enter his or her name. Once a user is connected, the server window has to display a connected message with the users address.

The users chat window should display a welcome message form the server. The chat window should include a message panel to display chat history.

Below the chat panel, there should be a profile picture, a text field for user to type messages and a send button for sending messages to other connected users.

In addition, there should be a setting button, an image button and an upload button. Setting button allows the user to change the background colour.

Image button allows a user to select files from the computer. The upload button allows the user to upload the selected image file to the server. The server saves the image at a file named image.jpg.

In the users chat panel, each message should display the users name followed by the typed message. Please show screen shot of the server window, and three user chat windows. Three users are Emily, Andrew and Mark. Please see the result sample in the attached imageimage text in transcribed

it, chat window 3 Welcome to te chat room Emily Hey everyone Server Started 127.00.1 has connected 127.00.1has connectod 12700.1 has connected Welcome to te dat room Emily. Hey everyone ndrew Hello Mark Hi Emily How is everyone doing? Andrew great Mark Cant be better Welcome to the chat room Emily. Heyeveryene Andrew: Hello Mark Hi Emily How is everyone doing? Andrew great Mark Cant be beter Mark Hi Emily, How is everyone doing? Andrew great Mark Cant be better Send Send Send Setting Clnage L Upload Setting image Upload Setting Image Upload

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

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago