Question: Create a JavaFX project which builds a GUI called GradeIO which creates a basic GUI AnchorPane container. Make sure to see that the project has

Create a JavaFX project which builds a GUI called GradeIO which creates a basic GUI AnchorPane container. Make sure to see that the project has a .fxml file and controller class separate from the main app. Double click on the projects .fxml file and it should open Scene Builder for that project.Add a private reference of type ArrayList of strings (named for example m_ gradesFromFile) to hold any grades read from file which should be instantiated using operator new in the initialize method of the controller class.Add a private reference of type FileHandler which should be instantiated using operator new in the initialize method of the controller class to be then used for file IO.Scene Builder ActivitiesGPAAdd a label that will display the GPA given a chosen grade named GPALabel.Add a textbox control that will take input for grade filename to read place a default string filename in it via the properties tab in Scene Builder.Add a button and label it Read Grades File. Add an event handler method named handleReadGrades. Implement the code to use the filehandler object to open a file named (given in the filename textbox you created above) and to fill the private ArrayList of strings container to store the read grades.As an example for students as a control that can be chosen to display grades the demo has used a combo box control which is loaded with grades once the grade file is read. Then each selection on the combo box is a grade that was read from the file. Any particular selection of the combo box can then be converted into a grade by clicking the Calculate GPA button. It was chosen as it easily allows the program to know which selection (i.e. grade) the user has selected. (other options are radio buttons as another example)Add a button and label it Calculate GPA. Add an event handler method named handleCalcGPA. Write a private method on the JavaFX controller class called convertGradeToGPA which when given a grade (which may be a selected grade from the grade display control above) returns the equivalent GPA in string form. This string can then be used to display into the GPALabel. In this handler, you will need to get the selected grade from the GUIs Grade control (e.g. combo box), call convertGradeToGPA, and display the returned string from that method in that label.Grades GUIAdd a button and label it OK. Add an event handler method named handleOKPressed. Implement the code to close the stage component of the application.Extra Credit: Add a button and label it Minimize. Do the research and find the API to minimize a JavaFX application call it test your app to see if it works.

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!