Programming > Research Paper > Creating a GUI Bank Balance Application CSC 372 Colorado State University – Global Campus (All)
Creating a GUI Bank Balance Application 2 BankAccount.java import java.awt.Label; import java.awt.TextField; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax... .swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class BankAccount extends JPanel implements ActionListener{ JButton debit = new JButton("Debit"); JButton credit = new JButton("Credit"); JButton exit = new JButton("Exit"); TextField t1, t2, output; // text fields Label debitAccount, creditAccount, balanceAmount; // labels double accountBalance=0.0; public BankAccount(JFrame frame) { /* * * creating label , setting boundaries and adding to frame */ debitAccount = new Label(" Debit Amount :"); debitAccount.setBounds(50, 100, 100, 50); frame.add(debitAccount); /* * * creating text box and setting boundaries and adding to frame */ t1 = new TextField(""); t1.setBounds(150, 110, 100, 50); frame.add(t1); /* * * creating label , setting boundaries and adding to frame */ creditAccount = new Label(" credit Amount :"); creditAccount.setBounds(50, 180, 100, 50); frame.add(creditAccount); [Show More]
Last updated: 1 year ago
Preview 1 out of 7 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
We Accept:
Connected school, study & course
About the document
Uploaded On
Apr 25, 2023
Number of pages
7
Written in
This document has been written for:
Uploaded
Apr 25, 2023
Downloads
0
Views
37
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·