You will need to extend the provided GUI and call the related APIs to implement the both Client and Server interfaces.

User Generated

Spunaybpb

Programming

Description

Use the code provided,

Do not modify the GUI INTERFACE

all the buttons should call the properly API,

I must be able to communicate via Terminal as well.

 you will need to extend the provided GUI and call the related APIs to implement the both Client and Server interfaces.

File and folders:

  1. JavaChat.drjava : The Drjava project file. You can double click it to open the project or you can open through Drjava “openproject” option.

  2. Folder, commandline: This folder contains the command line base code. It provides you a view of how to use API calls to implement the chatting program.

  3. Folder, gui: This folder contains the GUI interface base code. It provides you the example on how to use jframe to build you own GUI interface. In addition, both Client and Server GUIs have implement the on button, “start” or “connect”. You need carefully read the code on how to call those APIs.

  4. Folder, common: This folder contains the APIs that provide the “connect”, “start”, “send” methods. All the APIs you need are inside this folder.

What you need to do.

  1. Try to run and test the base code of both commandline and gui.

  2. Read through the code in the folder of commandline and gui. Make sure you

    understand the logic of those API calls.

  3. Read the APIs that provided in common folder. You only need to know what does

    this API do from the name of the API and don’t need to know how does the API

    realize it.

  4. Extend the GUI interface based on the provided code. You final GUI interface should

    have full capabilities as the command line base code does. 


javachat.zip

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
Really useful study material!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags