Question: Overview In this assignment you will create a GUI ( Graphical User Interface ) for the GroupChat created back in Assignment 3 . The GroupChat,
Overview
In this assignment you will create a GUI Graphical User Interface for the GroupChat created back in Assignment
The GroupChat, Message, and Reply classes will be used as they were written with one minor addition to
Message We will just create a new interface to allow users to use the GroupChat.
I am providing a JAR file that can be imported into your project that contains the needed GroupChat, Message, and
Reply classes. You are allowed to use your own GroupChat.java, Message.java, and Reply.java files if you wish.
Do not include the JAR file if you want to use your own files.
Various Important Notes
Use setDisableboolean to disableenable the elementstabs as needed.
The Message class contains a static method to extract the id from the String representing a message as
produced by toString
I set the font to monospace for the textArea, but you dont have to
To refresh the items in the list view, any time theres a change, you can clear and then reload all messages to
the items list
ListView contains the method scrollTo. Specify the correct index to scroll to the newest message when
reloading the items
Use a trycatch structure when deleting the message to know if the user is not allowed to delete the message.
the method in GroupChat will throw the exception
My recommendation for constructing this is to
o Completely build the layout with all needed elements
o Get the Choose User tab working
o Get the other tabs working one at a time.
o Dont try to do everything at once. Test often as you are working
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
