SlideShare a Scribd company logo
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 Pro
ject 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"), d
epartmentField,newLabel("City "),
cityField,newLabel("State"), stateField,newLabel("Zi
p"),
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, u
pdate);
//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 same textfield variables from
the GUI. Make sure you test your code before submitting it.
Due: Thursday April 21st 1:00 PM. New york

More Related Content

Similar to Scanned by CamScannerScanned by CamScannerBank.docx

EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
Rob Tweed
 
Start
StartStart
Start
yito24
 
From Swing to JavaFX
From Swing to JavaFXFrom Swing to JavaFX
From Swing to JavaFX
Yuichi Sakuraba
 
Intro react js
Intro react jsIntro react js
Intro react js
Vijayakanth MP
 
Integrating Wicket with Java EE 6
Integrating Wicket with Java EE 6Integrating Wicket with Java EE 6
Integrating Wicket with Java EE 6
Michael Plöd
 
How to create your own Volto site!
How to create your own Volto site!How to create your own Volto site!
How to create your own Volto site!
Rob Gietema
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react js
dhanushkacnd
 
Project Description Of Incident Management System Developed by PRS (CRIS) , N...
Project Description Of Incident Management System Developed by PRS (CRIS) , N...Project Description Of Incident Management System Developed by PRS (CRIS) , N...
Project Description Of Incident Management System Developed by PRS (CRIS) , N...
varunsunny21
 
Building and deploying React applications
Building and deploying React applicationsBuilding and deploying React applications
Building and deploying React applications
Astrails
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
UNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdfUNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdf
SakkaravarthiS1
 
mport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdfmport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdf
anikkothari1
 
20150516 modern web_conf_tw
20150516 modern web_conf_tw20150516 modern web_conf_tw
20150516 modern web_conf_tw
Tse-Ching Ho
 
How to Webpack your Django!
How to Webpack your Django!How to Webpack your Django!
How to Webpack your Django!
David Gibbons
 
EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3
EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3
EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3
Rob Tweed
 
JavaServer Faces 2.0 - JavaOne India 2011
JavaServer Faces 2.0 - JavaOne India 2011JavaServer Faces 2.0 - JavaOne India 2011
JavaServer Faces 2.0 - JavaOne India 2011
Arun Gupta
 
Simple React Todo List
Simple React Todo ListSimple React Todo List
Simple React Todo List
Ritesh Chaudhari
 
Rest web service_with_spring_hateoas
Rest web service_with_spring_hateoasRest web service_with_spring_hateoas
Rest web service_with_spring_hateoas
Zeid Hassan
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
Vinay Kumar
 
stateDatabuild.xml Builds, tests, and runs the project.docx
stateDatabuild.xml      Builds, tests, and runs the project.docxstateDatabuild.xml      Builds, tests, and runs the project.docx
stateDatabuild.xml Builds, tests, and runs the project.docx
whitneyleman54422
 

Similar to Scanned by CamScannerScanned by CamScannerBank.docx (20)

EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
 
Start
StartStart
Start
 
From Swing to JavaFX
From Swing to JavaFXFrom Swing to JavaFX
From Swing to JavaFX
 
Intro react js
Intro react jsIntro react js
Intro react js
 
Integrating Wicket with Java EE 6
Integrating Wicket with Java EE 6Integrating Wicket with Java EE 6
Integrating Wicket with Java EE 6
 
How to create your own Volto site!
How to create your own Volto site!How to create your own Volto site!
How to create your own Volto site!
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react js
 
Project Description Of Incident Management System Developed by PRS (CRIS) , N...
Project Description Of Incident Management System Developed by PRS (CRIS) , N...Project Description Of Incident Management System Developed by PRS (CRIS) , N...
Project Description Of Incident Management System Developed by PRS (CRIS) , N...
 
Building and deploying React applications
Building and deploying React applicationsBuilding and deploying React applications
Building and deploying React applications
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
UNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdfUNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdf
 
mport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdfmport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdf
 
20150516 modern web_conf_tw
20150516 modern web_conf_tw20150516 modern web_conf_tw
20150516 modern web_conf_tw
 
How to Webpack your Django!
How to Webpack your Django!How to Webpack your Django!
How to Webpack your Django!
 
EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3
EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3
EWD 3 Training Course Part 39: Building a React.js application with QEWD, Part 3
 
JavaServer Faces 2.0 - JavaOne India 2011
JavaServer Faces 2.0 - JavaOne India 2011JavaServer Faces 2.0 - JavaOne India 2011
JavaServer Faces 2.0 - JavaOne India 2011
 
Simple React Todo List
Simple React Todo ListSimple React Todo List
Simple React Todo List
 
Rest web service_with_spring_hateoas
Rest web service_with_spring_hateoasRest web service_with_spring_hateoas
Rest web service_with_spring_hateoas
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
 
stateDatabuild.xml Builds, tests, and runs the project.docx
stateDatabuild.xml      Builds, tests, and runs the project.docxstateDatabuild.xml      Builds, tests, and runs the project.docx
stateDatabuild.xml Builds, tests, and runs the project.docx
 

More from anhlodge

…if one of the primary purposes of education is to teach young .docx
…if one of the primary purposes of education is to teach young .docx…if one of the primary purposes of education is to teach young .docx
…if one of the primary purposes of education is to teach young .docx
anhlodge
 
✍Report OverviewIn this assignment, you will Document an.docx
✍Report OverviewIn this assignment, you will Document an.docx✍Report OverviewIn this assignment, you will Document an.docx
✍Report OverviewIn this assignment, you will Document an.docx
anhlodge
 
☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx
☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx
☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx
anhlodge
 
▪ Learning Outcomes1.Understand the basic concepts and termin.docx
▪ Learning Outcomes1.Understand the basic concepts and termin.docx▪ Learning Outcomes1.Understand the basic concepts and termin.docx
▪ Learning Outcomes1.Understand the basic concepts and termin.docx
anhlodge
 
●  What are some of the reasons that a MNE would choose internationa.docx
●  What are some of the reasons that a MNE would choose internationa.docx●  What are some of the reasons that a MNE would choose internationa.docx
●  What are some of the reasons that a MNE would choose internationa.docx
anhlodge
 
■ Research PaperGeneral Systems Theory Its Past andPote.docx
■ Research PaperGeneral Systems Theory Its Past andPote.docx■ Research PaperGeneral Systems Theory Its Past andPote.docx
■ Research PaperGeneral Systems Theory Its Past andPote.docx
anhlodge
 
▶︎ Prompt 1 Think about whether you identify with either Blue or .docx
▶︎ Prompt 1 Think about whether you identify with either Blue or .docx▶︎ Prompt 1 Think about whether you identify with either Blue or .docx
▶︎ Prompt 1 Think about whether you identify with either Blue or .docx
anhlodge
 
⁞ InstructionsChoose only ONE  of the following options .docx
⁞ InstructionsChoose only ONE  of the following options .docx⁞ InstructionsChoose only ONE  of the following options .docx
⁞ InstructionsChoose only ONE  of the following options .docx
anhlodge
 
⁞ InstructionsChoose only ONE of the following options below.docx
⁞ InstructionsChoose only ONE of the following options below.docx⁞ InstructionsChoose only ONE of the following options below.docx
⁞ InstructionsChoose only ONE of the following options below.docx
anhlodge
 
⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx
⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx
⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx
anhlodge
 
⁞ InstructionsAfter reading all of Chapter 5, please se.docx
⁞ InstructionsAfter reading all of Chapter 5, please se.docx⁞ InstructionsAfter reading all of Chapter 5, please se.docx
⁞ InstructionsAfter reading all of Chapter 5, please se.docx
anhlodge
 
⁞ InstructionsAfter reading all of Chapter 2, please select.docx
⁞ InstructionsAfter reading all of Chapter 2, please select.docx⁞ InstructionsAfter reading all of Chapter 2, please select.docx
⁞ InstructionsAfter reading all of Chapter 2, please select.docx
anhlodge
 
⁞ Instructions After reading all of Chapter 9, please .docx
⁞ Instructions After reading all of Chapter 9, please .docx⁞ Instructions After reading all of Chapter 9, please .docx
⁞ Instructions After reading all of Chapter 9, please .docx
anhlodge
 
…Multiple intelligences describe an individual’s strengths or capac.docx
…Multiple intelligences describe an individual’s strengths or capac.docx…Multiple intelligences describe an individual’s strengths or capac.docx
…Multiple intelligences describe an individual’s strengths or capac.docx
anhlodge
 
••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx
••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx
••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx
anhlodge
 
•••••iA National Profile ofthe Real Estate Industry and.docx
•••••iA National Profile ofthe Real Estate Industry and.docx•••••iA National Profile ofthe Real Estate Industry and.docx
•••••iA National Profile ofthe Real Estate Industry and.docx
anhlodge
 

Let us consider […] a pair of cases which I shall call Rescue .docx

Let us consider […] a pair of cases which I shall call Rescue .docx
Let us consider […] a pair of cases which I shall call Rescue .docx

Let us consider […] a pair of cases which I shall call Rescue .docx
anhlodge
 
•  Enhanced eText—Keeps students engaged in learning on th.docx
•  Enhanced eText—Keeps students engaged in learning on th.docx•  Enhanced eText—Keeps students engaged in learning on th.docx
•  Enhanced eText—Keeps students engaged in learning on th.docx
anhlodge
 
•    Here’s the approach you can take for this paperTitle.docx
•    Here’s the approach you can take for this paperTitle.docx•    Here’s the approach you can take for this paperTitle.docx
•    Here’s the approach you can take for this paperTitle.docx
anhlodge
 
•Your team will select a big data analytics project that is intr.docx
•Your team will select a big data analytics project that is intr.docx•Your team will select a big data analytics project that is intr.docx
•Your team will select a big data analytics project that is intr.docx
anhlodge
 

More from anhlodge (20)

…if one of the primary purposes of education is to teach young .docx
…if one of the primary purposes of education is to teach young .docx…if one of the primary purposes of education is to teach young .docx
…if one of the primary purposes of education is to teach young .docx
 
✍Report OverviewIn this assignment, you will Document an.docx
✍Report OverviewIn this assignment, you will Document an.docx✍Report OverviewIn this assignment, you will Document an.docx
✍Report OverviewIn this assignment, you will Document an.docx
 
☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx
☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx
☰Menu×NURS 6050 Policy and Advocacy for Improving Population H.docx
 
▪ Learning Outcomes1.Understand the basic concepts and termin.docx
▪ Learning Outcomes1.Understand the basic concepts and termin.docx▪ Learning Outcomes1.Understand the basic concepts and termin.docx
▪ Learning Outcomes1.Understand the basic concepts and termin.docx
 
●  What are some of the reasons that a MNE would choose internationa.docx
●  What are some of the reasons that a MNE would choose internationa.docx●  What are some of the reasons that a MNE would choose internationa.docx
●  What are some of the reasons that a MNE would choose internationa.docx
 
■ Research PaperGeneral Systems Theory Its Past andPote.docx
■ Research PaperGeneral Systems Theory Its Past andPote.docx■ Research PaperGeneral Systems Theory Its Past andPote.docx
■ Research PaperGeneral Systems Theory Its Past andPote.docx
 
▶︎ Prompt 1 Think about whether you identify with either Blue or .docx
▶︎ Prompt 1 Think about whether you identify with either Blue or .docx▶︎ Prompt 1 Think about whether you identify with either Blue or .docx
▶︎ Prompt 1 Think about whether you identify with either Blue or .docx
 
⁞ InstructionsChoose only ONE  of the following options .docx
⁞ InstructionsChoose only ONE  of the following options .docx⁞ InstructionsChoose only ONE  of the following options .docx
⁞ InstructionsChoose only ONE  of the following options .docx
 
⁞ InstructionsChoose only ONE of the following options below.docx
⁞ InstructionsChoose only ONE of the following options below.docx⁞ InstructionsChoose only ONE of the following options below.docx
⁞ InstructionsChoose only ONE of the following options below.docx
 
⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx
⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx
⁞ InstructionsAfter reading  The Metamorphosis by Frank .docx
 
⁞ InstructionsAfter reading all of Chapter 5, please se.docx
⁞ InstructionsAfter reading all of Chapter 5, please se.docx⁞ InstructionsAfter reading all of Chapter 5, please se.docx
⁞ InstructionsAfter reading all of Chapter 5, please se.docx
 
⁞ InstructionsAfter reading all of Chapter 2, please select.docx
⁞ InstructionsAfter reading all of Chapter 2, please select.docx⁞ InstructionsAfter reading all of Chapter 2, please select.docx
⁞ InstructionsAfter reading all of Chapter 2, please select.docx
 
⁞ Instructions After reading all of Chapter 9, please .docx
⁞ Instructions After reading all of Chapter 9, please .docx⁞ Instructions After reading all of Chapter 9, please .docx
⁞ Instructions After reading all of Chapter 9, please .docx
 
…Multiple intelligences describe an individual’s strengths or capac.docx
…Multiple intelligences describe an individual’s strengths or capac.docx…Multiple intelligences describe an individual’s strengths or capac.docx
…Multiple intelligences describe an individual’s strengths or capac.docx
 
••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx
••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx
••• JONATHAN LETHEM CRITICS OFTEN USE the word prolifi.docx
 
•••••iA National Profile ofthe Real Estate Industry and.docx
•••••iA National Profile ofthe Real Estate Industry and.docx•••••iA National Profile ofthe Real Estate Industry and.docx
•••••iA National Profile ofthe Real Estate Industry and.docx
 

Let us consider […] a pair of cases which I shall call Rescue .docx

Let us consider […] a pair of cases which I shall call Rescue .docx
Let us consider […] a pair of cases which I shall call Rescue .docx

Let us consider […] a pair of cases which I shall call Rescue .docx
 
•  Enhanced eText—Keeps students engaged in learning on th.docx
•  Enhanced eText—Keeps students engaged in learning on th.docx•  Enhanced eText—Keeps students engaged in learning on th.docx
•  Enhanced eText—Keeps students engaged in learning on th.docx
 
•    Here’s the approach you can take for this paperTitle.docx
•    Here’s the approach you can take for this paperTitle.docx•    Here’s the approach you can take for this paperTitle.docx
•    Here’s the approach you can take for this paperTitle.docx
 
•Your team will select a big data analytics project that is intr.docx
•Your team will select a big data analytics project that is intr.docx•Your team will select a big data analytics project that is intr.docx
•Your team will select a big data analytics project that is intr.docx
 

Recently uploaded

Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 

Recently uploaded (20)

Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 

Scanned by CamScannerScanned by CamScannerBank.docx

  • 1. 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 Pro ject 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;
  • 2. 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);
  • 3. zipField.setMaxWidth(70); pane.getChildren().addAll(newLabel("Name "), nameField, newLabel("Position"), positionField,newLabel("Department"), d epartmentField,newLabel("City "), cityField,newLabel("State"), stateField,newLabel("Zi p"), 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, u pdate); //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(); }
  • 4. } __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 same textfield variables from the GUI. Make sure you test your code before submitting it. Due: Thursday April 21st 1:00 PM. New york