Implement, using Java, an application to add user's transactions into a binary file, and then transfer the data in the file into a Database. 1- Create the following GUI: Transantion Manager Taon Taacton e Tanacton An 2- When the user presses the "Add" button, a new record containing the transaction id, name, and amount is added to the binary file named Transactions.dat. The file is located in C:/Account/Info folder. If nothing is added to the text fields, an Alert is displayed to the user and nothing is added to the file. After the record is added, clear the text fields. Example on Transactions File Format: | Salary Gas Commission 4 +1000 -200 +149.99 -40.75 1 Groceries 3- When the user presses the "Sync" button, copy all data from the binary file into the database named AccountDB. Given that: Table Name: Transactions Table Columns and Types: TransactionID (int), TransactionName (String), TransactionAmount (double) 4- When the user presses "Exit", close all active connections and quit the application. 5- If an exception occurs when adding a transaction or syncing to the database, display Alerts to the user containing the following messages respectively: "Cannot add the transaction to the file, please try again later." "Cannot sync your transactions to the database, please try again later."

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
I need the answer as soon as possible
Implement, using Java, an application to add user's transactions into a binary file, and then
transfer the data in the file into a Database.
1. Create the following GUI:
Transaction Manager
Trunactond
Tranaction e
Tanacton Amut
2- When the user presses the "Add" button, a new record containing the transaction id,
name, and amount is added to the binary file named Transactions.dat. The file is
located in C:/Account/Info folder.
If nothing is added to the text fields, an Alert is displayed to the user and nothing is
added to the file.
After the record is added, clear the text fields.
Example on Transactions File Format:
Salary
+1000
Gas
Commission
Groceries
-200
+149.99
-40.75
4
3- When the user presses the "Sync" button, copy all data from the binary file into the
database named AccountDB.
Given that:
Table Name: Transactions
Table Columns and Types: TransactionID (int), TransactionName (String),
TransactionAmount (double)
4- When the user presses “Exit", close all active connections and quit the application.
5- If an exception occurs when adding a transaction or syncing to the database, display
Alerts to the user containing the following messages respectively:
"Cannot add the transaction to the file, please try again later."
"Cannot sync your transactions to the database, please try again later."
Transcribed Image Text:Implement, using Java, an application to add user's transactions into a binary file, and then transfer the data in the file into a Database. 1. Create the following GUI: Transaction Manager Trunactond Tranaction e Tanacton Amut 2- When the user presses the "Add" button, a new record containing the transaction id, name, and amount is added to the binary file named Transactions.dat. The file is located in C:/Account/Info folder. If nothing is added to the text fields, an Alert is displayed to the user and nothing is added to the file. After the record is added, clear the text fields. Example on Transactions File Format: Salary +1000 Gas Commission Groceries -200 +149.99 -40.75 4 3- When the user presses the "Sync" button, copy all data from the binary file into the database named AccountDB. Given that: Table Name: Transactions Table Columns and Types: TransactionID (int), TransactionName (String), TransactionAmount (double) 4- When the user presses “Exit", close all active connections and quit the application. 5- If an exception occurs when adding a transaction or syncing to the database, display Alerts to the user containing the following messages respectively: "Cannot add the transaction to the file, please try again later." "Cannot sync your transactions to the database, please try again later."
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY