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: 2 years ago
Preview 1 out of 7 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Apr 25, 2023
Number of pages
7
Written in
All
This document has been written for:
Uploaded
Apr 25, 2023
Downloads
0
Views
85
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·