Question
JAVA GUI- OOP Your code structure will be suitable for object oriented programming. Please don't make the code structure complicated. can you explain the code
JAVA GUI- OOP
Your code structure will be suitable for object oriented programming.
Please don't make the code structure complicated.
can you explain the code you wrote (create comment lines. (explain methods)
This project needs to be done urgently, can you do it immediately?(Like in 2-4 hours) How long can you complete? Can you inform me? Can you write a comment.
Please make sure the code you wrote is correct, Thank you.
Relationships between classes:
There is an IS-A Relationship between the classes MemoryDeficit, Alzheimer and Amnesia that can be seen from the class diagram.
There is a HAS-A Relationship between Alzheimer and ClinicalCase classes and a HAS-A Relationship between Amnesia and ClinicalCase classes
Implement your classes according to these important notifications given above.
Some information related with classes:
For all non-visual classes, there is no default value for the non-static data members.
Write only the necessary accessor and mutator methods inside the classes!! You may add methods other than the given ones, IF you are going to use them!!
toString() method for all the classes: will return the necessary data field information related with the implemented class.
improveMemory() method is overridden in child classes (Alzheimer and Amnesia). For Alzheimer, it returns Solve Sudoku puzzles! For Amnesia, it returns Look old photos!.
PART B: Implement your GUI!!
Create a frame in your project named as MemoryApp.
Frame-1: This frame is the default start up frame. At first, users will enter the id of the deficit and choose the type of the memory loss from the combo box. Then, the user will enter the information of the clinical cases representing the patients.
Be careful while entering the name and surname of the patient. Do not forget to separate them by using comma (,) after getting from the user.
The deficit type divided into two parts as Amnesia and Alzheimer. Use radio buttons to differentiate them and to open related panels.
You may use different number of panels, however do not forget to implement the ones which have the titled border. User cannot edit text areas.
Figure -2 and 3: Enter the necessary information, choose the radio button Amnesia in order to enter information about this type of memory deficit.
The value of the deficit id will be sent to another combo box at the right side of the frame, next to the Search by deficit id button.
Figure -6-7:
Display Deficit button: in order to display information about the memory deficit types use Display Deficit button. You are supposed to use InfoClasss getAllMemory() method.
Use radio buttons to differentiate the memory deficit types.
If the user selects Amnesia radio button and presses the Display Deficit button, all the information about this deficit type will be displayed. You are supposed to use InfoClasss static getAmnesia() method to do this.
If the user selects Alzheimer radio button and presses the Display Deficit button, all the information about this deficit type will be displayed. You are supposed to use InfoClasss static getAlzheimer() method to do this.
Be careful, display deficit button will display all the amnesia information or all the Alzheimer information hold in the array list.
Figure -8:
Total Deficits button:
When the user presses Total Deficits button, in the second text area the information about the total numbers of Total Deficits, Total Amnesics and Total Alzheimers will be appeared. You are supposed to use InfoClasss showTotalMemory() method which calls the MemoryDeficit classs static method of getTotalDeficit(). If you need similar static methods for the other total values, add them too.
Since, we just entered two information, the number of Total Deficits is 2, Total Amnesics is 1 and the number of Total Alzheimers is 1.
For every added memory deficit whether Amnesia or Alzheimer, the values here must be increment.
Figure -9-10:
Search by deficit id button:
The users can search both memory deficit types by using the deficit ids. Your search process will be done by InfoClasss static method of searchMemory() which requires a string id as a parameter.
When the user selects an id from the combo box and presses the Search by deficit id button, the information about that deficit, should appear in the text area.
PART A: Implement your classes!! Your objective is to implement a program to understand the memory deficits of the clinical cases. Memory Deficit is divided into two parts as Alzheimer and Amnesia. Alzheimer and Amnesia are all memory deficits. Each has its own patient/s or we can just call them as clinical cases. Improvement > +improveMemory (): String Java Class Diagram: MemoryDeficit (abstract) #deficit_1d: String #memory_loss: String #totalDeficit:int InfoClass +memorvArrayList:ArrayListStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started