Microsoft Word - Assign 5 - BCS 345.docx Written by Arthur Hoskey, PhD Assignment 5 – BCS 345 Java Programming Due: 12/6/2021 @ 10:50am Submission Guidelines Create a winzip file containing the WHOLE...

1 answer below »
Here is a new assignment due on Dec. 3, 2021, I've attached the assignment sheet and a .zip file containing the prior project's .java files as they are needed.


Microsoft Word - Assign 5 - BCS 345.docx Written by Arthur Hoskey, PhD Assignment 5 – BCS 345 Java Programming Due: 12/6/2021 @ 10:50am Submission Guidelines Create a winzip file containing the WHOLE project directory and submit on Blackboard. IMPORTANT – Make sure you properly comment AND properly indent your program. The commenting and indenting documents are on Blackboard. If you fail to properly comment or properly indent points will be deducted. VERY IMPORTANT – IF THE PROGRAM DOES NOT COMPILE THERE WILL BE MAJOR POINTS TAKEN OFF. THIS MEANS IT WILL BE A FAILING GRADE. Overview You will create a JavaFX GUI application to display class grade data. You should use FXML to define the GUI. Project Setup Create a new FXML JavaFX Maven Archetype project (not Java Application).  Copy over the necessary .java files from the previous assignment’s project.  VERY IMPORTANT!!! Make the following changes to the module-info.java file (in default package) so it can use the GSON library (make sure to add the GSON dependency in Maven too): o requires com.google.gson; // Add near top o Change the following line: opens to javafx.fxml; // Original opens to javafx.fxml, com.google.gson; // New Written by Arthur Hoskey, PhD PrimaryController Class GUI event handlers should be defined in this class. This class should have an instance of ClassGrades as a member variable. Main Display This is what the screen should look like when you start it: This is what the screen should look like after opening a file (File|Open): Here is a screenshot of the menu: ListView conrol Multiple items are showing in the ListView (not one large string). The red dashed lines will NOT appear in the ListView. The red dashed lines are there to accentuate the fact that they are different items in the ListView. Written by Arthur Hoskey, PhD Menu Event Handling Open Menu Item When the user selects the Open menu item the program should display a FileChooser and let the user decide which file to read data from. It should read a ClassGrades JSON file as input. The data from the selected file should be read into the ClassGrades instance and then be displayed in the appropriate controls. You should clear the ListView items before adding the data that was just read from the file. As detailed above, the ClassGrades instance is declared in the controller class. The user should be able to cancel out of the open dialog and have it not change the state of the program. To be clear, if the user cancels out of the open file dialog, then the data that was being displayed and contained in the ClassGrades instance should not change. Here is a picture of the open file dialog: Menu Menu Item Written by Arthur Hoskey, PhD Save Report Menu Item When the User selects the Save Report menu item the program should display a FileChooser and let the user decide which file to write the report to. The FileChooser should show a Save dialog and not an Open dialog in this case (hint, you need to call a different method on the FileChooser when displaying it to show a save dialog). The program should then write the report to the selected file. Just to be clear, this menu item writes a full report not just data. The format of the report is the exact same as for a previous assignment (check previous assignment for the report format). The user should be able to cancel out of the save report dialog and have it not write the report. Here is a picture of the Save dialog: Close Menu Item When the user chooses the Close menu item it should close the window.
Answered 5 days AfterDec 02, 2021

Answer To: Microsoft Word - Assign 5 - BCS 345.docx Written by Arthur Hoskey, PhD Assignment 5 – BCS 345 Java...

Amar Kumar answered on Dec 03 2021
126 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here