Question: Task 2 . 1 : Add an ActionEvent on the Add button: o To add a new item, user must: 1 - Fill the Item

Task 2.1: Add an ActionEvent on the Add button: o To add a new item, user must: 1- Fill the Item Name and Quantity using TextField. 2- Choose the Quantity unit form the ComboBox 3- Select the item Category from the ComboBox 4- Choose the Expiry Date from the DatePicker. 5- Click on the Add Button. o Item name must be added directly as string to obItems ObservableList. o Item quantity and its unit will be combined together in one string before inserting it to the Quantity ObservableList. Example: if the quantity is 100 and the unit is Boxes, the quantity must be combined as 100 Boxes before adding it to o'Quantity ObservableList. o Item category must be got from the ComboBox and added directly as string to obC category ObservableList. o The expiry date must be got from the DatePicker then added directly to obEy Date ObservableList.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!