Bank Management
Bank Management
PROJECT REPORT
ON
BANK MANAGEMENT SYSTEM
We thank to our project guide (Mrs. Neetu Singh) for helping us to settle all the
problems we had while our project report under went for setting our quires. We are
also very thankful to our HOD (Dr. Nishant Kumar Rathi) to inspired us during this
period.
Finally, but definitely not the last we are thankful to our family for standing by us in
our confusions and apprehensions.
We Sanni Kumar & Aditya Verma hereby declare that the project report title “Bank
management system…” is an original work carried out by me under the supervision of
Mrs. Neetu Singh We further declare that this work has not been submitted to any
other Institute for the award of the degree of Masters of Computer Application.
This is to certify that the project entitled “Bank management system” [developed for
“Bank “], which is being submitted for the partial fulfillment for the award of Degree of
Bachelor of Computer Applications from MSU University, Saharanpur i s a n
a u t h e n t i c w o r k c a r r i e d out by Sanni Kumar & Aditya Verma (University Roll No.
210855106303 and 210855106021) under the guidance of Project Guide Mrs. Neetu
Singh.
The matter embodied in this project work has not been submitted earlier for the award of degree
or diploma.
Cover page…………………………………………………………………………………………I
Certificate from the candidate (declaration)…………………………………………………II
Certificate issued by the college (forwarding letter)……………………………………… III
Acknowledgement ……………………………………………………………………… IV
Introduction ……………………………………………………………………………………...6
Limitations of existing system…………………………………………………………………7
Advantages of proposed system ………… .. ……… ……… ……… ……… … 8
Front-End and Back-End Used ………………………………………………………………9
Hardware and software used ………………………………………………………………. 10
Modules ………………………………………………………………………………………… 11-12
DFD………………………………………………………………………………………………..13-14
ER-Diagram ……………………………………………………………………………………..15
Database tables………………………………………………………………………………16-19
Output …………………………………………………………………………………………20-25
Coding…………………………………………………………………………………………25-57
Conclusion………………………………………………………………………………………58
Future Scope…………………………………………………………………………………….59
Bibliography……………………………………………………………………………………..60
INTRODUCTION OF PROJECT
Model software in which all the information regarding the Bank of the organization
will be presented. It is an Intranet based desktop application which has admits
component to manage the Bank and deposit of the system. This desktop application
is based on the management of Bank of an organization. The application contains
Card details, cash withdrawal, mini statement details and the remaining Bank user
that are presented in the organization. There is a provision of updating the Bank
also. This application also provides the remaining balance of the Bank as well as
the details of the balance of transaction. The new user can also be charged pin here.
In this project the fast cashes also given to cross check the balance, google is also
in the additional services. Here the Signup page is created in new account open to
protect the management of the Bank of organization in providing card number to
prevent it from the threads and misuse of the Bank.
This project deals with the information criteria of the bank management system
basically the project describes how to manage records of account holder & cash
withdrawal mini statement.
In this project we can store the information of bank users, we can feed information of
mini statement & balance enquiry we can access information of a particular member
we can retrieves the information of bank users’ records.
In this project we can change pin & deposit money and cash withdrawal Elsy and every
bank user simply use the software.
In this project user can view the reports but can’t take the prints of reports.
7
ADVANTAGES OF THE PROJECT
The project deals with the information criteria of the bank management
system. Basically, the project describes how to manage user accounts in
deposit & withdrawal etc.
8
Project Category & Development
SQL is used as front-end language for handling the database using MySQL
software.
9
2.4 Software and Hardware Requirements
Software Requirements:
10
modules
1. Number Of Modules
● Login module
● Deposit module
● Fast cash
● Pin change
● Cash withdrawal
● Mini statement
● Balance enquiry
a) Authentication of a user.
b) Recovery of password.
11
Deposit module –
Allow the user to deposit money and check the amount records, and
withdrawal.
Fash cash –
Allow the user to deposit money and check the amount records, and
withdrawal.
Pin change –
Allow the admin change the current pin and manage card and also
Change.
Mini statement
This module the card user can withdrawal amount and deposit
User also use card.
Balance enquiry
12
0 level DFD
Customer
details
Bank
management
system
Bank
manager
13
1 level DFD
14
E-R Diagram
city.
Card no Pin
Page 3
Account
type Balance
enquiry
Re-pin
New
Back
Pin
Pin
change
10000 20000
withdrawal
50000
Fast deposit
cash
3000
10000
50000 Deposit
0
back
15
Database Table
Bank management
16
Sign up
Page 1
Father name Text 20 Not Null Used for creating new accounts
Marital status Text 20 Not null Used for creating new accounts
Pin code number 20 Not null Used for creating new accounts
Page2
17
Senior citizen Select 20 Not null Used for creating new accounts
Account type Text 20 Primary key Used for creating new accounts
Card number number 20 Primary key Used for creating new accounts
Services required Text 20 Not null Used for creating new accounts
Deposit
18
Cash withdrawal
19
Output screen
Login
20
Signup page 1
Signup page2
21
Signup page3
Transaction
22
Withdrawal
Deposit
23
Pin changes
Fast cash
24
Balance
25
CODING
LOGIN
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
Login(){
setTitle("AUTOMATED TELLER MACHINE");
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/logo.jpg"));
Image i2 = i1.getImage().getScaledInstance(100, 100, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l11 = new JLabel(i3);
l11.setBounds(70, 10, 100, 100);
add(l11);
l3 = new JLabel("PIN:");
l3.setFont(new Font("Raleway", Font.BOLD, 28));
l3.setBounds(125,220,375,30);
add(l3);
26
b1.setForeground(Color.WHITE);
b2 = new JButton("CLEAR");
b2.setBackground(Color.BLACK);
b2.setForeground(Color.WHITE);
setLayout(null);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
getContentPane().setBackground(Color.WHITE);
setSize(800,480);
setLocation(550,200);
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
try{
if(ae.getSource()==b1){
Conn c1 = new Conn();
String cardno = tf1.getText();
String pin = pf2.getText();
String q = "select * from login where cardno = '"+cardno+"' and pin = '"+pin+"'";
ResultSet rs = c1.s.executeQuery(q);
if(rs.next()){
setVisible(false);
new Transactions(pin).setVisible(true);
}else{
JOptionPane.showMessageDialog(null, "Incorrect Card Number or PIN");
}
}else if(ae.getSource()==b2){
tf1.setText("");
pf2.setText("");
}else if(ae.getSource()==b3){
setVisible(false);
new Signup().setVisible(true);
}
27
}catch(Exception e){
e.printStackTrace();
}
}
public static void main(String[] args){
new Login().setVisible(true);
}
28
SignUp page1
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import com.toedter.calendar.JDateChooser;
import java.util.*;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15;
JTextField t1,t2,t3,t4,t5,t6,t7;
JRadioButton r1,r2,r3,r4,r5;
JButton b;
JDateChooser dateChooser;
Signup(){
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/logo.jpg"));
Image i2 = i1.getImage().getScaledInstance(100, 100, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l11 = new JLabel(i3);
l11.setBounds(20, 0, 100, 100);
add(l11);
l3 = new JLabel("Name:");
l3.setFont(new Font("Raleway", Font.BOLD, 20));
l6 = new JLabel("Gender:");
l6.setFont(new Font("Raleway", Font.BOLD, 20));
l9 = new JLabel("Address:");
l9.setFont(new Font("Raleway", Font.BOLD, 20));
t1 = new JTextField();
t1.setFont(new Font("Raleway", Font.BOLD, 14));
t2 = new JTextField();
t2.setFont(new Font("Raleway", Font.BOLD, 14));
t3 = new JTextField();
t3.setFont(new Font("Raleway", Font.BOLD, 14));
t4 = new JTextField();
t4.setFont(new Font("Raleway", Font.BOLD, 14));
t5 = new JTextField();
t5.setFont(new Font("Raleway", Font.BOLD, 14));
t6 = new JTextField();
t6.setFont(new Font("Raleway", Font.BOLD, 14));
t7 = new JTextField();
t7.setFont(new Font("Raleway", Font.BOLD, 14));
b = new JButton("Next");
b.setFont(new Font("Raleway", Font.BOLD, 14));
b.setBackground(Color.BLACK);
b.setForeground(Color.WHITE);
r1 = new JRadioButton("Male");
r1.setFont(new Font("Raleway", Font.BOLD, 14));
30
r1.setBackground(Color.WHITE);
r2 = new JRadioButton("Female");
r2.setFont(new Font("Raleway", Font.BOLD, 14));
r2.setBackground(Color.WHITE);
r3 = new JRadioButton("Married");
r3.setFont(new Font("Raleway", Font.BOLD, 14));
r3.setBackground(Color.WHITE);
r4 = new JRadioButton("Unmarried");
r4.setFont(new Font("Raleway", Font.BOLD, 14));
r4.setBackground(Color.WHITE);
r5 = new JRadioButton("Other");
r5.setFont(new Font("Raleway", Font.BOLD, 14));
r5.setBackground(Color.WHITE);
setLayout(null);
l1.setBounds(140,20,600,40);
add(l1);
l2.setBounds(290,80,600,30);
add(l2);
l3.setBounds(100,140,100,30);
add(l3);
t1.setBounds(300,140,400,30);
add(t1);
l4.setBounds(100,190,200,30);
add(l4);
t2.setBounds(300,190,400,30);
add(t2);
l5.setBounds(100,240,200,30);
add(l5);
r1.setBounds(300,290,60,30);
add(r1);
r2.setBounds(450,290,90,30);
add(r2);
l7.setBounds(100,340,200,30);
add(l7);
t3.setBounds(300,340,400,30);
add(t3);
l8.setBounds(100,390,200,30);
add(l8);
r3.setBounds(300,390,100,30);
add(r3);
r4.setBounds(450,390,100,30);
add(r4);
r5.setBounds(635,390,100,30);
add(r5);
l9.setBounds(100,440,200,30);
add(l9);
t4.setBounds(300,440,400,30);
add(t4);
l10.setBounds(100,490,200,30);
add(l10);
t5.setBounds(300,490,400,30);
add(t5);
l11.setBounds(100,540,200,30);
add(l11);
t6.setBounds(300,540,400,30);
add(t6);
l12.setBounds(100,590,200,30);
add(l12);
t7.setBounds(300,590,400,30);
add(t7);
b.setBounds(620,660,80,30);
add(b);
32
b.addActionListener(this);
getContentPane().setBackground(Color.WHITE);
setSize(850,800);
setLocation(500,120);
setVisible(true);
}
try{
if(t6.getText().equals("")){
JOptionPane.showMessageDialog(null, "Fill all the required fields");
}else{
Conn c1 = new Conn();
String q1 = "insert into signup
values('"+formno+"','"+name+"','"+fname+"','"+dob+"','"+gender+"','"+email+"','"+marital+"','"+address
+"','"+city+"','"+pincode+"','"+state+"')";
c1.s.executeUpdate(q1);
new Signup2(first).setVisible(true);
setVisible(false);
}
}catch(Exception e){
e.printStackTrace();
}
33
}
Signup page 2
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13;
JButton b;
JRadioButton r1,r2,r3,r4;
JTextField t1,t2,t3;
JComboBox c1,c2,c3,c4,c5;
String formno;
Signup2(String formno){
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/logo.jpg"));
Image i2 = i1.getImage().getScaledInstance(100, 100, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l14 = new JLabel(i3);
l14.setBounds(150, 0, 100, 100);
add(l14);
this.formno = formno;
setTitle("NEW ACCOUNT APPLICATION FORM - PAGE 2");
l2 = new JLabel("Religion:");
l2.setFont(new Font("Raleway", Font.BOLD, 18));
l3 = new JLabel("Category:");
l3.setFont(new Font("Raleway", Font.BOLD, 18));
l4 = new JLabel("Income:");
l4.setFont(new Font("Raleway", Font.BOLD, 18));
l5 = new JLabel("Educational");
l5.setFont(new Font("Raleway", Font.BOLD, 18));
34
l11 = new JLabel("Qualification:");
l11.setFont(new Font("Raleway", Font.BOLD, 18));
l6 = new JLabel("Occupation:");
l6.setFont(new Font("Raleway", Font.BOLD, 18));
b = new JButton("Next");
b.setFont(new Font("Raleway", Font.BOLD, 14));
b.setBackground(Color.BLACK);
b.setForeground(Color.WHITE);
t1 = new JTextField();
t1.setFont(new Font("Raleway", Font.BOLD, 14));
t2 = new JTextField();
t2.setFont(new Font("Raleway", Font.BOLD, 14));
r1 = new JRadioButton("Yes");
r1.setFont(new Font("Raleway", Font.BOLD, 14));
r1.setBackground(Color.WHITE);
r2 = new JRadioButton("No");
r2.setFont(new Font("Raleway", Font.BOLD, 14));
r2.setBackground(Color.WHITE);
r3 = new JRadioButton("Yes");
r3.setFont(new Font("Raleway", Font.BOLD, 14));
r3.setBackground(Color.WHITE);
r4 = new JRadioButton("No");
r4.setFont(new Font("Raleway", Font.BOLD, 14));
r4.setBackground(Color.WHITE);
setLayout(null);
l12.setBounds(700,10,60,30);
add(l12);
l13.setBounds(760,10,60,30);
add(l13);
l1.setBounds(280,30,600,40);
add(l1);
l2.setBounds(100,120,100,30);
add(l2);
c1.setBounds(350,120,320,30);
add(c1);
l3.setBounds(100,170,100,30);
add(l3);
c2.setBounds(350,170,320,30);
add(c2);
l4.setBounds(100,220,100,30);
add(l4);
c3.setBounds(350,220,320,30);
add(c3);
l5.setBounds(100,270,150,30);
add(l5);
c4.setBounds(350,270,320,30);
36
add(c4);
l11.setBounds(100,290,150,30);
add(l11);
l6.setBounds(100,340,150,30);
add(l6);
c5.setBounds(350,340,320,30);
add(c5);
l7.setBounds(100,390,150,30);
add(l7);
t1.setBounds(350,390,320,30);
add(t1);
l8.setBounds(100,440,180,30);
add(l8);
t2.setBounds(350,440,320,30);
add(t2);
l9.setBounds(100,490,150,30);
add(l9);
r1.setBounds(350,490,100,30);
add(r1);
r2.setBounds(460,490,100,30);
add(r2);
l10.setBounds(100,540,180,30);
add(l10);
r3.setBounds(350,540,100,30);
add(r3);
r4.setBounds(460,540,100,30);
add(r4);
b.setBounds(570,640,100,30);
add(b);
b.addActionListener(this);
getContentPane().setBackground(Color.WHITE);
setSize(850,750);
setLocation(500,120);
setVisible(true);
}
try{
if(t2.getText().equals("")){
JOptionPane.showMessageDialog(null, "Fill all the required fields");
}else{
Conn c1 = new Conn();
String q1 = "insert into signup2
values('"+formno+"','"+religion+"','"+category+"','"+income+"','"+education+"','"+occupation+"','"+pan
+"','"+aadhar+"','"+scitizen+"','"+eaccount+"')";
c1.s.executeUpdate(q1);
new Signup3(formno).setVisible(true);
setVisible(false);
}
}catch(Exception ex){
ex.printStackTrace();
}
38
SignUp page3
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java.util.*;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12;
JRadioButton r1,r2,r3,r4;
JButton b1,b2;
JCheckBox c1,c2,c3,c4,c5,c6,c7;
String formno;
Signup3(String formno){
this.formno = formno;
setTitle("NEW ACCOUNT APPLICATION FORM - PAGE 3");
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/logo.jpg"));
Image i2 = i1.getImage().getScaledInstance(100, 100, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l14 = new JLabel(i3);
l14.setBounds(150, 0, 100, 100);
add(l14);
l4 = new JLabel("XXXX-XXXX-XXXX-4184");
l4.setFont(new Font("Raleway", Font.BOLD, 18));
39
l6 = new JLabel("It would appear on ATM Card/Cheque Book and Statements");
l6.setFont(new Font("Raleway", Font.BOLD, 12));
l7 = new JLabel("PIN:");
l7.setFont(new Font("Raleway", Font.BOLD, 18));
l8 = new JLabel("XXXX");
l8.setFont(new Font("Raleway", Font.BOLD, 18));
b1 = new JButton("Submit");
b1.setFont(new Font("Raleway", Font.BOLD, 14));
b1.setBackground(Color.BLACK);
b1.setForeground(Color.WHITE);
b2 = new JButton("Cancel");
b2.setFont(new Font("Raleway", Font.BOLD, 14));
b2.setBackground(Color.BLACK);
b2.setForeground(Color.WHITE);
c6 = new JCheckBox("E-Statement");
c6.setBackground(Color.WHITE);
c6.setFont(new Font("Raleway", Font.BOLD, 16));
c7 = new JCheckBox("I hereby declares that the above entered details correct to th best of my
knowledge.",true);
c7.setBackground(Color.WHITE);
c7.setFont(new Font("Raleway", Font.BOLD, 12));
setLayout(null);
l11.setBounds(700,10,70,30);
add(l11);
l12.setBounds(770,10,40,30);
add(l12);
l1.setBounds(280,40,400,40);
add(l1);
41
l2.setBounds(100,140,200,30);
add(l2);
r1.setBounds(100,180,150,30);
add(r1);
r2.setBounds(350,180,300,30);
add(r2);
r3.setBounds(100,220,250,30);
add(r3);
r4.setBounds(350,220,250,30);
add(r4);
l3.setBounds(100,300,200,30);
add(l3);
l4.setBounds(330,300,250,30);
add(l4);
l5.setBounds(100,330,200,20);
add(l5);
l6.setBounds(330,330,500,20);
add(l6);
l7.setBounds(100,370,200,30);
add(l7);
l8.setBounds(330,370,200,30);
add(l8);
l9.setBounds(100,400,200,20);
add(l9);
l10.setBounds(100,450,200,30);
add(l10);
c1.setBounds(100,500,200,30);
add(c1);
c2.setBounds(350,500,200,30);
add(c2);
c3.setBounds(100,550,200,30);
42
add(c3);
c4.setBounds(350,550,200,30);
add(c4);
c5.setBounds(100,600,200,30);
add(c5);
c6.setBounds(350,600,200,30);
add(c6);
c7.setBounds(100,680,600,20);
add(c7);
b1.setBounds(250,720,100,30);
add(b1);
b2.setBounds(420,720,100,30);
add(b2);
getContentPane().setBackground(Color.WHITE);
setSize(850,850);
setLocation(500,120);
setVisible(true);
b1.addActionListener(this);
b2.addActionListener(this);
try{
if(ae.getSource()==b1){
if(atype.equals("")){
JOptionPane.showMessageDialog(null, "Fill all the required fields");
}else{
Conn c1 = new Conn();
String q1 = "insert into signup3
values('"+formno+"','"+atype+"','"+cardno+"','"+pin+"','"+facility+"')";
String q2 = "insert into login values('"+formno+"','"+cardno+"','"+pin+"')";
c1.s.executeUpdate(q1);
c1.s.executeUpdate(q2);
JOptionPane.showMessageDialog(null, "Card Number: " + cardno + "\n Pin:"+ pin);
new Deposit(pin).setVisible(true);
setVisible(false);
}
}else if(ae.getSource()==b2){
System.exit(0);
}
44
}catch(Exception ex){
ex.printStackTrace();
}
Transaction
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
JLabel l1;
JButton b1,b2,b3,b4,b5,b6,b7;
String pin;
Transactions(String pin){
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/atm.jpg"));
Image i2 = i1.getImage().getScaledInstance(1000, 1180, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l2 = new JLabel(i3);
l2.setBounds(0, 0, 960, 1080);
add(l2);
b1 = new JButton("DEPOSIT");
b2 = new JButton("CASH WITHDRAWL");
45
b3 = new JButton("FAST CASH");
b4 = new JButton("MINI STATEMENT");
b5 = new JButton("PIN CHANGE");
b6 = new JButton("BALANCE ENQUIRY");
b7 = new JButton("EXIT");
setLayout(null);
l1.setBounds(235,400,700,35);
l2.add(l1);
b1.setBounds(170,499,150,35);
l2.add(b1);
b2.setBounds(390,499,150,35);
l2.add(b2);
b3.setBounds(170,543,150,35);
l2.add(b3);
b4.setBounds(390,543,150,35);
l2.add(b4);
b5.setBounds(170,588,150,35);
l2.add(b5);
b6.setBounds(390,588,150,35);
l2.add(b6);
b7.setBounds(390,633,150,35);
l2.add(b7);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
b5.addActionListener(this);
b6.addActionListener(this);
b7.addActionListener(this);
setSize(960,1080);
setLocation(500,0);
setUndecorated(true);
setVisible(true);
46
}
47
Withdrawal
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.Date;
import java.sql.*;
JTextField t1,t2;
JButton b1,b2,b3;
JLabel l1,l2,l3,l4;
String pin;
Withdrawl(String pin){
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/atm.jpg"));
Image i2 = i1.getImage().getScaledInstance(1000, 1180, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 960, 1080);
add(l3);
t1 = new JTextField();
t1.setFont(new Font("Raleway", Font.BOLD, 25));
b1 = new JButton("WITHDRAW");
b2 = new JButton("BACK");
setLayout(null);
l1.setBounds(190,350,400,20);
l3.add(l1);
l2.setBounds(190,400,400,20);
l3.add(l2);
t1.setBounds(190,450,330,30);
l3.add(t1);
b1.setBounds(390,588,150,35);
l3.add(b1);
48
b2.setBounds(390,633,150,35);
l3.add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
setSize(960,1080);
setLocation(500,0);
setUndecorated(true);
setVisible(true);
}
setVisible(false);
new Transactions(pin).setVisible(true);
}
}else if(ae.getSource()==b2){
setVisible(false);
new Transactions(pin).setVisible(true);
}
}catch(Exception e){
e.printStackTrace();
System.out.println("error: "+e);
}
}
49
public static void main(String[] args){
new Withdrawl("").setVisible(true);
}
}
Deposit
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
JTextField t1,t2;
JButton b1,b2,b3;
JLabel l1,l2,l3;
String pin;
Deposit(String pin){
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/atm.jpg"));
Image i2 = i1.getImage().getScaledInstance(1000, 1180, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 960, 1080);
add(l3);
t1 = new JTextField();
t1.setFont(new Font("Raleway", Font.BOLD, 22));
b1 = new JButton("DEPOSIT");
b2 = new JButton("BACK");
setLayout(null);
l1.setBounds(190,350,400,35);
l3.add(l1);
t1.setBounds(190,420,320,25);
l3.add(t1);
50
b1.setBounds(390,588,150,35);
l3.add(b1);
b2.setBounds(390,633,150,35);
l3.add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
setSize(960,1080);
setUndecorated(true);
setLocation(500,0);
setVisible(true);
}
Balance enquiry
package ASimulatorSystem;
51
import java.awt.*;
import java.awt.event.*;
import java.sql.ResultSet;
import javax.swing.*;
import java.util.*;
BalanceEnquiry(String pin) {
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/atm.jpg"));
Image i2 = i1.getImage().getScaledInstance(1000, 1180, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 960, 1080);
add(l3);
l1 = new JLabel();
l1.setForeground(Color.WHITE);
l1.setFont(new Font("System", Font.BOLD, 16));
b1 = new JButton("BACK");
setLayout(null);
b1.addActionListener(this);
52
setSize(960, 1080);
setUndecorated(true);
setLocation(500, 0);
setVisible(true);
}
Pin changes
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
JPasswordField t1,t2;
JButton b1,b2;
JLabel l1,l2,l3;
String pin;
Pin(String pin){
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/atm.jpg"));
Image i2 = i1.getImage().getScaledInstance(1000, 1180, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l4 = new JLabel(i3);
l4.setBounds(0, 0, 960, 1080);
add(l4);
53
t1 = new JPasswordField();
t1.setFont(new Font("Raleway", Font.BOLD, 25));
t2 = new JPasswordField();
t2.setFont(new Font("Raleway", Font.BOLD, 25));
b1 = new JButton("CHANGE");
b2 = new JButton("BACK");
b1.addActionListener(this);
b2.addActionListener(this);
setLayout(null);
l1.setBounds(280,330,800,35);
l4.add(l1);
l2.setBounds(180,390,150,35);
l4.add(l2);
l3.setBounds(180,440,200,35);
l4.add(l3);
t1.setBounds(350,390,180,25);
l4.add(t1);
t2.setBounds(350,440,180,25);
l4.add(t2);
b1.setBounds(390,588,150,35);
l4.add(b1);
b2.setBounds(390,633,150,35);
l4.add(b2);
setSize(960,1080);
setLocation(500,0);
setUndecorated(true);
setVisible(true);
if(!npin.equals(rpin)){
JOptionPane.showMessageDialog(null, "Entered PIN does not match");
return;
}
if(ae.getSource()==b1){
if (t1.getText().equals("")){
JOptionPane.showMessageDialog(null, "Enter New PIN");
54
}
if (t2.getText().equals("")){
JOptionPane.showMessageDialog(null, "Re-Enter new PIN");
}
c1.s.executeUpdate(q1);
c1.s.executeUpdate(q2);
c1.s.executeUpdate(q3);
}else if(ae.getSource()==b2){
new Transactions(pin).setVisible(true);
setVisible(false);
}
}catch(Exception e){
e.printStackTrace();
}
}
Fast Cash
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java.util.Date;
FastCash(String pin) {
this.pin = pin;
ImageIcon i1 = new
55
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/atm.jpg"));
Image i2 = i1.getImage().getScaledInstance(1000, 1180, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 960, 1080);
add(l3);
setLayout(null);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
b5.addActionListener(this);
b6.addActionListener(this);
b7.addActionListener(this);
setSize(960, 1080);
setLocation(500, 0);
56
setUndecorated(true) ;
setVisible(true);
if (ae.getSource() == b7) {
this.setVisible(false);
new Transactions(pin).setVisible(true);
}else{
Date date = new Date();
c.s.executeUpdate("insert into bank values('"+pin+"', '"+date+"', 'Withdrawl', '"+amount+"')");
JOptionPane.showMessageDialog(null, "Rs. "+amount+" Debited Successfully");
setVisible(false);
new Transactions(pin).setVisible(true);
}
} catch (Exception e) {
e.printStackTrace();
}
57
Conclusion
In this project I have tried my best to make user friendly software. This software can be
handled by any person who has little bit of idea of computers. In this software I have tried to
meet most of the requirements of the present Bank management system including
maintaining details of customers, , and deposit. I also keep provision to update the details of
customers, change pin . In my effort I have tried to make my software all the more user
friendly but there may some features which I would like to include in my continuous attempts.
58
FUTURE SCOPE OF THE PROJECT
1. All the bank user can use this software very easy form.
The system generates type of information that can be used for various
purpose.
59
Bibliography
60