Question: Java Practice Exercise Create a database and give it a table based on the createShippersTable.sql file. Then create a GUI-base application that resembles the image

Java

Practice Exercise

  • Create a database and give it a table based on the createShippersTable.sql file.
  • Then create a GUI-base application that resembles the image below.
  • Login: nbuser Password: nbuser
  • The database will be jdbc:derby://localhost:1527/Index
  • It allows the user to do the following:
    • See the data currently in the table.
    • Add a record to the table. Java Practice Exercise Create a database and give it a table based

      How it should work

    • When the GUI first displays, it should show you in the JList all of the records of the Shippers table.
      • Obviously, youll have to concatenate the data in the fields together, since a JList only shows one unit of data per row.
    • If you fill out the JTextFields and click the Add to Database button, then the data from the fields becomes part of a new record in the Shippers table.
      • When you do that, the JList should once again display all of the records from Shippers including the new record.
      • You cant add a new record to the bottom of the Jlist you will have to get all the data in the table and set it to the JList with the setListData() method.
    • The Clear button clears the JTextFields it does nothing to the JList.on the createShippersTable.sql file. Then create a GUI-base application that resembles the

GUI Controls TextFields Speedy Express, 555-555-5555 Fast Eddy Shipping, 123-123-1234 Business Shippers, 321-222-4321 .ttendailta!besoi, at' en) _ JLabels ompany Asaollable.ll ist Number Add to Database Clear Buttons How it should work Fill out the fields... Shipping C Shipping Companies Speedy Express, 555-555-5555 Fast Eddy Shipping, 123-123-1234 Business Shippers, 321-222-4321 Able Parcel and Package, 402-513 Speedy Express, 555-555-5555 2, Fast Eddy Shipping, 123-123-1234 3, Business Shippers, 321-222-4321 Sam's Sam's 6240 and 513 Sam's Shipping, 444-444 4444 44-444-4444 Number Add to DatabaseClear Add to Database The new record appears in the list -- and is added to the database table Click the button... GUI Controls TextFields Speedy Express, 555-555-5555 Fast Eddy Shipping, 123-123-1234 Business Shippers, 321-222-4321 .ttendailta!besoi, at' en) _ JLabels ompany Asaollable.ll ist Number Add to Database Clear Buttons How it should work Fill out the fields... Shipping C Shipping Companies Speedy Express, 555-555-5555 Fast Eddy Shipping, 123-123-1234 Business Shippers, 321-222-4321 Able Parcel and Package, 402-513 Speedy Express, 555-555-5555 2, Fast Eddy Shipping, 123-123-1234 3, Business Shippers, 321-222-4321 Sam's Sam's 6240 and 513 Sam's Shipping, 444-444 4444 44-444-4444 Number Add to DatabaseClear Add to Database The new record appears in the list -- and is added to the database table Click the button

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!