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);
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 (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);
Trending now
This is a popular solution!
Step by step
Solved in 2 steps