Scanned by CamScanner Scanned by CamScanner BankAccounts/.DS_Store __MACOSX/BankAccounts/._.DS_Store BankAccounts/BankAccounts.javaBankAccounts/BankAccounts.java/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package quiz9; //import static chapter17.StudentRecords.loadObject; import java.io.*; import javafx.application.Application; import javafx.geometry.HPos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.TextField; import javafx.scene.layout.GridPane; import javafx.scene.layout.FlowPane; import javafx.scene.layout.BorderPane; import javafx.stage.Stage; import javafx.geometry.Insets; import javafx.geometry.NodeOrientation; import javafx.geometry.Pos; import javafx.scene.control.ContentDisplay; import javafx.scene.layout.VBox; import javafx.scene.layout.HBox; import java.util.*; publicclassBankAccountsextendsApplication{ publicstaticvoid main(String[] args){Application.launch(args);} @Override publicvoid start(Stage primaryStage)throwsIOException{ FlowPane pane =newFlowPane(); TextField nameField =newTextField(); TextField positionField =newTextField(); TextField departmentField =newTextField(); TextField cityField =newTextField(); TextField stateField =newTextField(); TextField zipField =newTextField(); long length; int numOfEntries; pane.setPadding(newInsets(10,10,10,10)); pane.setVgap(5); pane.setHgap(8); nameField.setMinWidth(310); positionField.setMinWidth(310); departmentField.setMinWidth(310); cityField.setMaxWidth(140); stateField.setMaxWidth(40); zipField.setMaxWidth(70); pane.getChildren().addAll(newLabel("Name "), nameField, newLabel("Position"), positionField,newLabel("Department"), departmentField,newLabel("City "), cityField,newLabel("State"), stateField,newLabel("Zip"), zipField); Button add =newButton("Add"); Button first =newButton("First"); Button next =newButton("Next"); Button previous =newButton("Previous"); Button last =newButton("Last"); Button update =newButton("Update"); ButtonDeSerialize=newButton("DeSerialize"); ButtonSerialize=newButton("Serialize"); pane.getChildren().addAll(add, first, next, previous, last, update); //length = file.length(); TextField[] fields ={nameField, positionField, departmentField, cityField, stateField, zipField}; Scene scene =newScene(pane,400,150); primaryStage.setScene(scene); primaryStage.setTitle("Bank Accounts"); primaryStage.show(); } } __MACOSX/BankAccounts/._BankAccounts.java Start from BankAccounts.java file [ attached] then you are supposed to activate the buttons [ add, first, second, next, previous and last ] based on the discussion we have in class. Create accounts.java to hold the s.