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 6-8 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






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 > +improve Memory (): String Java Class Diagram: MemoryDeficit (abstract) #deficit id: String #memory_l033: String #totalDeficit:int InfoClass +memorvArrayList:ArrayList +addMemory MemoryDeficit def):void +getAllMemory (): String +get Amnesia (): String +getAlzheimer): String +searchMemory String id) : MemoryDeficit +3howIotal Memoryl) : String +3howImprovement!): String +MemoryDeficitString String) +Costring1:string tretfotalDeficit():int +getDeficit id(): String Alzheimer -declining area: String -totalAlzheimering -clin: ClinicalCase Amnesia -amnesia type: String -cause: String -location: String -clin: Clinica case -totalAmnesia:int +Alzheimer String String String, String Stringunt. String) +toString(): String +ge TotalAlzheimerd) :int +Amnesia (String String SiningString, Sanathana tranathi itustning) +toString): String tegrotalameslal: 1nt ClinicalCase -nastentadostning -pasienterameString eatient.eurname : String -99.int -gender:String +Chinica Case String String Stringnint, String) +taString!):String +getPatient id:String 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 HASA 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. improve Memory() 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. Display and Search Dimply Det Memory Den Deficit id: Memory Los Clinical Cases Patient : Patient Name Surname: Age: Gender: Defioke Type Arvogia Amnesia Akheimer Total Deficits Case: Brain Location Add Deficit Search by deficit di Figure -1 Figure -2 and 3: Enter the necessary information, choose the radio button "Amnesia in order to enter information about this type of memory deficit. "ADD DEFICIT" button for "Amnesia": When the user presses "ADD DEFICIT button, the information about the memory deficit "Amnesia" must be kept from the necessary components. You will create an Amnesia object with using these information. Then, you will add that object into the InfoClass's ArrayList without creating an InfoClass Object (try to use InfoClass's addMemory method). Also before the add operation ended, all the necessary text fields must be cleared and the combo box values must be appeared as empty just like the opening frame. The added "Amnesia" must be send to the first text area as a message of "Amnesia is added". 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. > BE CAREFUL; USE ONLY ONE ARRAYLIST which blongs to the InfoClass's static one for holding memory deficit information. DO NOT TRY to separate them into two array lists. Hermyelids Desde Defickt 2353 Desday Deck Memory Herwyluss ici Chicas 15 Pit Peter, Susanne et Priet, 66 ich mesia Total Deficis Retrogate be Caus Brain action Add Daft Figure -2 Figure - 3 Figure -4 and 5: Enter the necessary information; choose the radio button "Alzheimer" in order to enter information about this type of memory deficit. "ADD DEFICIT" button for "Alzheimer": When the user presses "ADD DEFICIT button, the information about the memory deficit Alzheimer" must be kept from the necessary components. You will create an Alzheimer object with using these information. Then, you will add that object into the InfoClass's ArrayList without creating an InfoClass Object (try to use InfoClass's addMemory method). Also before the add operation ended, all the necessary text fields must be cleared and the combo box values must be appeared as empty just like the opening frame. The added Alzheimer" must be send to the first text area as a message of "Alzheimer is added". 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. Merry Delor's Mer Deich Dick AT Heylesi One Cases Chical Point Patient Sys Dunda Patie, * A Totats Atlete Alfacted Area ABC Search 0.83 23 Figure -4 Figure -5 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 InfoClass's 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 InfoClass's static getAmnesia() method to do this. DGTIGRI Memory LORS ) memorLOm011 bent i 45 bent Name: A Patti SERI A Dendar ramal As Type: Rarograde DUS Brain Infection Location: hippocampus Am Total De DOD Acer Figure -6 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 InfoClass's 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. Momory Dolicito Derici Id: Display and Search Dirty Det Merry LENI Cles CERE Patient is Pation Name Surnamo! Age DorioitID: 4664 Memory Loss: implicit Fatient id: 55 Patient Name: Zeynep ratiunt Surname Dum Declining AP Goanition Amnesia - Alzheimor Dorot T Alzheimer Total Delicito ArTected Area: Acid Deficit Soaren by cortoit id Figure - 7 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 InfoClass's showTotalMemory() method which calls the MemoryDeficit class's 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. Display and Search Display Delicit Memory Deficits Daficht Id: Memory Loss: Clinical Care Patient Id: Patient Name, Surnames DentID: 4064 Memory Losa implicit Patient id: 65 Patient Name: Zeynep Patient Surname: Daria Age Tu Gencler: female Declining Area:cognition Gender: O Amnesia O Alzheimer Deficit Type Alzheimer Total Deficit Afected Are Total Deficits: 2 Total Amnesies: 1 Total Alzheimers: 1 KI Ack Dericit arch tay with Figure - 8 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 InfoClass's static method of search Memory() 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. Display and Search Display Derick Memory Deficits Deficit let: Memory Loss Clinical Cases Patient id Patient Name, Surname: Pericit ID: 2353 Memory Loss: implicit Patient id: 45 Patent NOMO: Ayse Patient Burname: Vali Age: 50 Gender: Female annesie Type: Retrograde Cause: Brain infection Location: hippocampus Age: Gender: Amnesia Alzheimer Deficit Type: Amnesia type Total Deficits Course Total Deficits: 2 Total Amnesis: 1 Total Alzheimara: 1 Brain Location: Select from the combo box and search!! 22:33 Add Deficit Search by detid: Deficit ID: 2363 Memory Loss Implicit Patient id: 45 Patient Name: a Patient Sumame voli Age: 5 Gender ramala Amnesia Type Petrograde V1 Figure - 9 Display and Search Display Deficit Memory Deficits Dericit : Memory Loss: Clinical Cases Patient id: Patient Name, Surname: pencil D: 2353 Memory Loss Impilelt Fallent id: 45 Fatient Name: Ayee Patient Surname: Veli Age 65 Gender: female Amnesia Type: Retrograda Cause Brain Infection Location: hippocampus Age: Gender: Amnesia Alzheimer Deficit Type: Amnesia type: Total Deficit Cause: Total Deficits: 2 Total Amnesica: 1 Total Alzheimers: 1 Brain Location: -1564 Add Deficit Search by deficit perlelt ID: 4554 Memory Loss: implicit Patient id: 60 Patient Nome Zeynep Patient Surname Damia Age: 70 Bender: female Declining Area: Cognition Figure - 10