Database Application to a GUI Application Assignment

Added on - 18 Sep 2019

  • 3

    pages

  • 1080

    words

  • 51

    views

  • 0

    downloads

Showing pages 1 to 1 of 3 pages
IDS 401Fall 2016Assignment 3Due Friday 11/18/201660 pointsInstructionsDeadlineIn order to receive full credit, this assignment must be submitted by Friday, November 18that 11:59pm.Submitting your assignment early is recommended, in case problems arise with the submission process.Late submissions will be accepted (but penalized 10pts) up to one week after the submission deadline.After that, assignments will not be accepted.AssignmentConvert your existing console-driven employee database application to a GUI application. Submit yourcode via Blackboard, as a single .java file.Only one upload is permitted per student, so pleaseensure your code is correct and complete and in the proper format before uploading!The file nameshould be your last name, first name, and DatabaseGUI run together:EX: LundquistDougDatabaseGUI.java.The required functionalities & components are:1.A DatabaseGUI class that extends JFrame, contains a Database object from 3., below, andincludes:a.A JTextField for entering user commands with the following formats (user-specifiedparameters in italics):i."addlastName firstName department id jobCode"ii."modifyfield matchValue newValue"iii."deletelastName firstName department id jobCode"iv."readfield matchValue"v.Each command should be entered as a unit and parsed (for example, using aStringTokenizer with a space character delimiter) –do notseparately enter theaction and then each individual parameterb.A JTextArea for displaying results or other messages following command processingc.Two JButtons:i.labeled "Load", for loading an Employee array from file "C:/data/IDS401.dat"ii.labeled "Save", for saving an Employee array to file "C:/data/IDS401.dat"2.An Employee class that contains data about individual employeesa.Fields:For this assignment, all Employee fields areprivateand should only be accessedfrom outside classes using the appropriateget&setmethodsi.Strings: lastName, firstName, departmentii.ints: id, jobCodeb.Methods:i.Set: One “set” method (e.g., setLastName) for each field, which accepts the field’stype as a parameter and sets the field’s value to that parameterii.Get: One “get” method (e.g., getLastName) for each field, with the same return typeas the field (e.g, a String for getLastName) and leaves the field unchanged3.A Database class that maintains records of employees:a.Fields:i.an arrayeof Employee objects, with the initial size set tozeroii.a counter for the current number of Employees ine, initialized to zerob.Methods: