Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a GUI application in Java using JavaFX that allows user to: Add car information to a database. You must create all eight fields shown

Write a GUI application in Java using JavaFX that allows user to:

  1. Add car information to a database. You must create all eight fields shown in the next page screenshot and follow the same design. The car type combo box should have 3 values SUV/Sedan/Van. By adding a new car the new entry should appear in the table view.
  2. Delete selected cars from the database. The car should be selected by clicking on the table view row.
  3. Filter table of cars by selecting make, model, type, year range, location, mileage range, and price range. If all conditions are provided regarding make, type, model, year, location, mileage, and price, all of them should be applied to the filter function. If they are provided partially, only the ones that are not empty should be considered to filter the data. Please make sure in your video demo you show insert data, delete data, and all filtering combinations. If your UI does not work properly, at least demo the data insert, delete, and access data.

image text in transcribed

The application should retrieve the car information from an Oracle table named Car. Here is the definition of the table:

CREATE TABLE Car (

carID integer NOT NULL,

make varchar (20) NOT NULL,

model varchar (100) NOT NULL,

type varchar (100) NOT NULL,

b_year integer NOT NULL,

location varchar (100) NOT NULL,

mileage integer NOT NULL,

price integer NOT NULL,

PRIMARY KEY (carID)

);

Populate the table with several rows as below:

INSERT INTO Car VALUES(1,'BMW','X4','SUV',2019, 'Toronto',42000,33000);

Final Test Car Data CarlD Car Make Model Type Year Location Mileage Price Add Car Filters Car Make: Model: Type: Year: Location: Milleage: Price range: Car Make Model Type From Year Location Min mileage Min price To Year Max mileage: Max price Filter Delete Car

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions