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.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter2: Planning Applications And Designing Interfaces
Section: Chapter Questions
Problem 6E
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage