Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to build a small application that keeps record of the family members in a Family. For this quiz assume that we are

You are required to build a small application that keeps record of the family members in a Family. For this quiz assume that we are recoding the data of a Single family. Details of GUI Layer The required JFrames have been provided. The Quiz4 JFrame is the main menu.If the Add a family member is selected the FamilyRecordEntry frame should be displayed.In this frame you will get the data from the fields and call appropriate code from the business layer to add a family member. See the details below. Upon successful adding, clear all the fields and show a success message. If close is pressed the Main menu will be displayed If from the Quiz4 main screen, View Family Composition is selected, the FamilyRecordView frame is displayed.In this frame, you will call the necessary code from the business layer to show the names of all the family members in the JList (see detailed below). If the user selects a name, the corresponding details will be shown in the fields on the right. When close is pressed, the main menu will be displayed again. Details for the business layer You will need to create a class FamilyMember with the required attributes i.e. names (String), role (String), gender (char), and age (int). Provide the constructor and getters and setters. You will also need to create a class Family member that will contain a collection (ArrayList) for family member instances. Provide appropriate constructor. Provide methods addFamilyMember (name, role, gender and age) that adds a member to the collection. You will call this method at an appropriate place in the GUI layer Provide another method getAllMembers() that returns an array containing all instances of family members in this collection. You will call this method at an appropriate place in the GUI Additionally, you might consider making Family a singleton class and providing necessary functions to make it accessible across different JFrame.

image text in transcribedimage text in transcribed

///////////////////////////////////////////Note/////////////////////////////////////////////////////// YOU HAVE TO RIGHT THE BACK END CODE FOR THESE GUI . THE CODE MUST BE DONE IN JAVA

Family Record Name Role Father Gender Male Female Age Add Member Close 23 Yuz4. lava View Family Record Family Members Name Role Gender Age Close

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

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions