Write down the source java code of the GUI shown by the pictures below. Make sure that the Create Account button creates the DebitCard object and displays it in New Balance label of the current balance.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write down the source java code of the GUI shown by the pictures below.

Make sure that the Create Account button creates the DebitCard object and displays it in New Balance label of the current balance.

Clicking the buttons Deposit , Withdaw and calc interest should display in the New Balance label the updated balance. Write down all the codes of those buttons and textfield for it to work.

Also display an error message if there is an error in any of the transaction.

NewJFrame.java x
Palette x
Source Design History
O Tool Bar
E Desktop Pane
Internal Frame
Layered Pane
The Preview Design button (in the toolbar) enables you to test the design of the form.
B Swing Controls
abel Label
OK Button
The Help Bar displays context sensitive hints for your GUI design.
Ou foggie butto
Check Box
Input Account Number
Create Account
- Radio Button
Button Group
Input Account Name
Combo Box
List
Text Field
tx Text Area
Input Balance
Other Components - Properties x
New Balance
jLabel8
Deposit
Input Ammount
<No Properties>
Withdraw
jLabel7
Calc Interest
Other Components
Output - Run (NetbeansGUI_CLARO) x
DD
exec-maven-plugin:3.0.0:exec (default-cli) @ Netbeans GUI_CLARO
Picked up
JAVA_OPTIONS: -Xmx25 €M
BUILD SUCCESS
Total time :
56.113 s
Finished at: 2022-03-04T12:43:31+08:00
Transcribed Image Text:NewJFrame.java x Palette x Source Design History O Tool Bar E Desktop Pane Internal Frame Layered Pane The Preview Design button (in the toolbar) enables you to test the design of the form. B Swing Controls abel Label OK Button The Help Bar displays context sensitive hints for your GUI design. Ou foggie butto Check Box Input Account Number Create Account - Radio Button Button Group Input Account Name Combo Box List Text Field tx Text Area Input Balance Other Components - Properties x New Balance jLabel8 Deposit Input Ammount <No Properties> Withdraw jLabel7 Calc Interest Other Components Output - Run (NetbeansGUI_CLARO) x DD exec-maven-plugin:3.0.0:exec (default-cli) @ Netbeans GUI_CLARO Picked up JAVA_OPTIONS: -Xmx25 €M BUILD SUCCESS Total time : 56.113 s Finished at: 2022-03-04T12:43:31+08:00
Design a GUI using the following control: label, text field, button, checkbox, radio
button, combox box and list box.
Objectives:
Description
1. Create a project with your project name NetbeansGUI_YOURFAMILYNAME. Create a GUI as
shown below.
Input Account Number
Create Account
Button
Input Account Name
Textfields
Input Balance
Label
New Balance
Input Amount
Deposit
Buttons
Withdraw
Calc Interest
Textfield
Label (Error Message)
2. Add your DebitCard class in this project.
3. Click button Create Account creates the DebitCard object and displays in New Balance
the current balance. After creating the object, disable the button Create Account and
textfields in the create account panel. Display an error message if the input entered are
invalid.
4. Clicking buttons Deposit, Withdraw and Calc Interest will display in New Balance the
updated balance. Display error message if there is an error in any of the transaction.
Transcribed Image Text:Design a GUI using the following control: label, text field, button, checkbox, radio button, combox box and list box. Objectives: Description 1. Create a project with your project name NetbeansGUI_YOURFAMILYNAME. Create a GUI as shown below. Input Account Number Create Account Button Input Account Name Textfields Input Balance Label New Balance Input Amount Deposit Buttons Withdraw Calc Interest Textfield Label (Error Message) 2. Add your DebitCard class in this project. 3. Click button Create Account creates the DebitCard object and displays in New Balance the current balance. After creating the object, disable the button Create Account and textfields in the create account panel. Display an error message if the input entered are invalid. 4. Clicking buttons Deposit, Withdraw and Calc Interest will display in New Balance the updated balance. Display error message if there is an error in any of the transaction.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Events
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education