1. Using SceneBuilder, open the EmployeeView and create a form for Employee Data Entry, similar to the form shown in Figure 2. The TextArea is to be filled by the current employee list after adding a new employee. To help you, the component tree is also shown on the figure: 2. When the form is loaded by the EmployeeApp, it should initially hide the car maker and Price labels and textfields, as shown in Figure 3. It should also initialize the employees list (Hint: by calling a method in EmployeeRepo). When the “Has a Car?” button is clicked, the form displays as in Figure 4. 3. When the user fills the required data and clicks the "Add" button, an Employee instance should be created and added to the employees list (Hint: use the static addEmployee() method in the EmployeeRepo). The employees list should then be displayed in the TextArea in the GUI. (Notice the added data are highlighted record in Figure 5) 4. The "Clear" Button should erase the contents of all the fields and the textArea. It should also hide the car related fields and labels, as shown in Figure 2. 5. The "Exit" button should close the application by simply calling System.exit(0);

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Requirements:

1. Using SceneBuilder, open the EmployeeView and create a form for Employee Data Entry, similar to the form shown in Figure 2. The TextArea is to be filled by the current employee list after adding a new employee. To help you, the component tree is also shown on the figure:

2. When the form is loaded by the EmployeeApp, it should initially hide the car maker and Price labels and textfields, as shown in Figure 3. It should also initialize the employees list (Hintby calling a method in EmployeeRepo). When the “Has a Car?” button is clicked, the form displays as in Figure 4.

3. When the user fills the required data and clicks the "Add" button, an Employee instance should be created and added to the employees list (Hint: use the static addEmployee() method in the EmployeeRepo). The employees list should then be displayed in the TextArea in the GUI. (Notice the added data are highlighted record in Figure 5)

4. The "Clear" Button should erase the contents of all the fields and the textArea. It should also hide the car related fields and labels, as shown in Figure 2.

5. The "Exit" button should close the application by simply calling System.exit(0);

Download the project named inlab3-spr21-given.zip from the course
inlab)-spr21-given
sre
website and import it as an "Existing Eclipse project" into your workspace.
The packages in this project are shown in Figure 1. Run the EmployeeApp
to make sure that your project works corectly. You should get a blank GUI.
app
EmployeeAppjava
controller
- EmployeeControllerjava
O EmployeeController
model
DAutomobilejava
2 Employeejava
B repository
Your task is to fill this GUI with components, as described below.
Note that the EmployeeView and the EmployeeController are empty. You
should develop them as detailed below. All other classes are fully
implemented and you should not edit them.
S view
EmployeeView.fem
A RE System Library lire
Requirements:
1. Using SceneBuilder, open the EmployeeView and create a form for
Employee Data Entry, similar to the form shown in Figure 2. The
TextArea is to be filled by the current employee list after adding a
new employee. To help you, the component tree is also shown on the figure:
JavaFX
Figure 1: Packages and source files
Employeeview.temi
Fae tde View Imet Mody Arange Preview Window Heip
Library
Conta
Cno
Egloyee Data Entry
Name
Mtu
Hae Cart
Shape
Car maker
Chan
Price
Document
erety
Ada Crar
OE vo
E Lubel Employee Data Entry
List of Employees
Label (0, Name
Label 0. 2 Car make
O Lubel 0, 3 Pio
O Tettield , )
O Tedfieia (1, 2
O Tertfied (
O Buton 1, 1 Has a Cart
D Toolar
O uton Aad
O Burton Cler
O unon t
O Lubel List of Employees
O Tentve
Figure 2: Employee View
Transcribed Image Text:Download the project named inlab3-spr21-given.zip from the course inlab)-spr21-given sre website and import it as an "Existing Eclipse project" into your workspace. The packages in this project are shown in Figure 1. Run the EmployeeApp to make sure that your project works corectly. You should get a blank GUI. app EmployeeAppjava controller - EmployeeControllerjava O EmployeeController model DAutomobilejava 2 Employeejava B repository Your task is to fill this GUI with components, as described below. Note that the EmployeeView and the EmployeeController are empty. You should develop them as detailed below. All other classes are fully implemented and you should not edit them. S view EmployeeView.fem A RE System Library lire Requirements: 1. Using SceneBuilder, open the EmployeeView and create a form for Employee Data Entry, similar to the form shown in Figure 2. The TextArea is to be filled by the current employee list after adding a new employee. To help you, the component tree is also shown on the figure: JavaFX Figure 1: Packages and source files Employeeview.temi Fae tde View Imet Mody Arange Preview Window Heip Library Conta Cno Egloyee Data Entry Name Mtu Hae Cart Shape Car maker Chan Price Document erety Ada Crar OE vo E Lubel Employee Data Entry List of Employees Label (0, Name Label 0. 2 Car make O Lubel 0, 3 Pio O Tettield , ) O Tedfieia (1, 2 O Tertfied ( O Buton 1, 1 Has a Cart D Toolar O uton Aad O Burton Cler O unon t O Lubel List of Employees O Tentve Figure 2: Employee View
2. When the form is loaded by the EmployeeApp, it should initially hide the car maker and Price
labels and textfields, as shown in Figure 3. It should also initialize the employees list (Hint by
calling a method in EmployeeRepo). When the "Has a Car?" button is dlicked, the form displays as
in Figure 4.
Inpe Dt ny
Cat
Ce
A C
Lat of Employe
Lit of E
Figure 4: Empiyer has a car
Figure 3: Employee nithout a cur
3. When the user fills the required data and clicks
the "Add" button, an Employee instance should
be created and added to the employees list
(Hint: use the static addEmployee() method in
the EmployeeRepo). The employees list should
then be displayed in the TextArea in the GUI.
(Notice the added data are highlighted record in
Figure 5)
Figure S:A new Employee Added
Transcribed Image Text:2. When the form is loaded by the EmployeeApp, it should initially hide the car maker and Price labels and textfields, as shown in Figure 3. It should also initialize the employees list (Hint by calling a method in EmployeeRepo). When the "Has a Car?" button is dlicked, the form displays as in Figure 4. Inpe Dt ny Cat Ce A C Lat of Employe Lit of E Figure 4: Empiyer has a car Figure 3: Employee nithout a cur 3. When the user fills the required data and clicks the "Add" button, an Employee instance should be created and added to the employees list (Hint: use the static addEmployee() method in the EmployeeRepo). The employees list should then be displayed in the TextArea in the GUI. (Notice the added data are highlighted record in Figure 5) Figure S:A new Employee Added
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Web Page
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education