0% found this document useful (0 votes)
17 views

Bank Management

Uploaded by

harsh730jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Bank Management

Uploaded by

harsh730jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 60

A

PROJECT REPORT
ON
BANK MANAGEMENT SYSTEM

Submitted in Partial Fulfillment of the Requirements


for the award of the degree of

BACHELOR OF COMPUTER APPLICATION


By
Name of Student:
Sanni Kumar& Aditya Verma
(Roll No: - 210855106380 & 210855106285)

Under The supervision

Internal Guide – Mrs. Neetu Singh


Designation -
Assistant Professor - (BCA dept., SRC)

Dept. Of Computer Application


Shri Ram College of Management,
Muzaffarnagar

MAA SHAKUBHARI UNIVERSITY, SRE, UP, INDIA


ACKNOWLEDGEMENT

We are students of BCA(3rdYear) here by submit our project. Merely words to

thank these people would be insufficient.

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.

NAME OF STUDENTS WITH ROLL NO.

Sanni Kumar (210855106303)


Aditya Verma (210855106021)
DECLARATION

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.

Student Name – Sanni Kumar


Roll No. – 210855106303

Student Name – Aditya Verma


Roll No. - 210855106021
FORWARDING LETTER

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.

We wish him all the best for the future.

Internal Guide Head - BCA Department

Mrs. Neetu Singh Mr. Nishant Rathi


TABLE OF CONTENT
TOPIC PAGE NO.

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

The project Bank Management System is a complete desktop-based application


designed on java using NetBeans Software. The main aim of the project is to
develop Bank Management System.

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.

The Bank Management System Solution:


Our Bank user Management System is a sophisticated yet user-friendly software platform
that provides a holistic approach to Bank management. It addresses these challenges by
offering an array of features and tools that streamline
Limitations of Project

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.

 should provide timely information as required.

 It’s used to deposited very easy and

 This system is effective and saves time and cost of users.

 It is less time consuming and provides maximum accuracy.


 It saves organization resources and expenses.
 The system is useful as it deposits an exact cost of
statements for requested number of days.

8
Project Category & Development

It is a WINDOWS APPLICATION means program is written in

this application are run under the Microsoft windows operating

system, also called a windows application. This application can run on

32bit or 64-bit versions of windows.

2.2 Front end


JAVA used as FRONT- END

Java is used as front-end programming language using NetBeans software.


2.3 Back end
SQL used as BACK END

SQL is used as front-end language for handling the database using MySQL
software.

9
2.4 Software and Hardware Requirements

Technologies Used : Java and SQL


Hardware Requirements:

Processor: - Ryzen core 5


Ram :- 1gb or higher
Desktop – PC / Laptop
Keyboard & Mouse

Software Requirements:

Operating System : Windows 11


Programming Language : Java (jdk-21)
NetBeans : 12.5 Version
MySQL Workbench : 8.0

10
modules

1. Number Of Modules
● Login module
● Deposit module
● Fast cash
● Pin change
● Cash withdrawal

● Mini statement
● Balance enquiry

2. Process Logic Of Module

LOGIN MODULE- This is the main module in the project


.The user can read and write information about every member
.The user can also deposit add and check mini statement records of
user. We can also withdraw cash and change card pin.

This module is responsible to perform following operations.

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 is responsible to generate current following mini statement


and new transactions history check users also.
Cash withdrawal

This module the card user can withdrawal amount and deposit
User also use card.

Balance enquiry

This module is used to balance enquiry currently balance and check


User also check and easily use.

12
0 level DFD

Customer
details

Bank
management
system

Bank
manager

13
1 level DFD

14
E-R Diagram
city.

email Marital status


category
category Address
gender
religion
Date of
birth
Page 1 Pin code
Page 2
income
Name
education state
Sign
Up
Father name
Adhar no
Pancard

PIN Services Card


Sign In

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

Sign Up Balance enquires Deposit

Bank management

Fast cash withdrawal


Pin change
Data Table

User LOGIN Table

FIELD DATA SIZE CONSTRAINTS DESCRIPTION


NAME TYPE
Card_no Number 20 Primary key Used for login
User card no.

PIN_no NUMBER 20 Primary key Used for login


user pin

16
Sign up
Page 1

FIELD DATA SIZ CONSTRAIN DESCRIPTION


NAME TYPE E TS
Name Text 20 Not Null Used for creating new accounts

Father name Text 20 Not Null Used for creating new accounts

Date_of_birth Text 20 Not null Used for creating new accounts

Gender Text 20 Not null Used for creating new accounts

Email Text 50 Not Null Used for creating new accounts

Marital status Text 20 Not null Used for creating new accounts

Destination Text 20 Not null Used for creating new accounts

Address Text 50 Primary key Used for creating new accounts

City Text 20 Not null Used for creating new accounts

Pin code number 20 Not null Used for creating new accounts

state number 20 Not null Used for creating new accounts

Page2

religion Select 20 Not null Used for creating new accounts

Category Text 20 Not null Used for creating new accounts

Income number 20 Not null Used for creating new accounts

Education Select 20 Not null Used for creating new accounts

occupation Text 50 Not null Used for creating new accounts

Pan no Number 20 Not null Used for creating new accounts

17
Senior citizen Select 20 Not null Used for creating new accounts

Adhar NO number 20 Not null Used for creating new accounts

Existing 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

Pin number 20 Primary key Used for creating new accounts

Services required Text 20 Not null Used for creating new accounts

Deposit

FIELD DATA SIZE CONTRAINTS DESCRIPTION


NAME TYPE
Enter amount number 20 Not null Used for deposit
Money in account

Deposit Text 50 Not null Used for deposit


Money in account

back Number 10 Not null Used for deposit


Section out

18
Cash withdrawal

FIELD DATA SIZE CONTRAINTS DESCRIPTION


NAME TYPE
Select amount Number 50 Not null Used for select
Withdraw amount
Mini statement

FIELD DATA SIZE CONTRAINTS DESCRIPTION


NAME TYPE
Statement Number 50 Primary key Used for check
mini statement
exit Button 10 Not null Used for mini
sections out

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.*;

public class Login extends JFrame implements ActionListener{


JLabel l1,l2,l3;
JTextField tf1;
JPasswordField pf2;
JButton b1,b2,b3;

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);

l1 = new JLabel("WELCOME TO ATM");


l1.setFont(new Font("Osward", Font.BOLD, 38));
l1.setBounds(200,40,450,40);
add(l1);

l2 = new JLabel("Card No:");


l2.setFont(new Font("Raleway", Font.BOLD, 28));
l2.setBounds(125,150,375,30);
add(l2);

tf1 = new JTextField(15);


tf1.setBounds(300,150,230,30);
tf1.setFont(new Font("Arial", Font.BOLD, 14));
add(tf1);

l3 = new JLabel("PIN:");
l3.setFont(new Font("Raleway", Font.BOLD, 28));
l3.setBounds(125,220,375,30);
add(l3);

pf2 = new JPasswordField(15);


pf2.setFont(new Font("Arial", Font.BOLD, 14));
pf2.setBounds(300,220,230,30);
add(pf2);

b1 = new JButton("SIGN IN");


b1.setBackground(Color.BLACK);

26
b1.setForeground(Color.WHITE);

b2 = new JButton("CLEAR");
b2.setBackground(Color.BLACK);
b2.setForeground(Color.WHITE);

b3 = new JButton("SIGN UP");


b3.setBackground(Color.BLACK);
b3.setForeground(Color.WHITE);

setLayout(null);

b1.setFont(new Font("Arial", Font.BOLD, 14));


b1.setBounds(300,300,100,30);
add(b1);

b2.setFont(new Font("Arial", Font.BOLD, 14));


b2.setBounds(430,300,100,30);
add(b2);

b3.setFont(new Font("Arial", Font.BOLD, 14));


b3.setBounds(300,350,230,30);
add(b3);

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.*;

public class Signup extends JFrame implements ActionListener{

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;

Random ran = new Random();


long first4 = (ran.nextLong() % 9000L) + 1000L;
String first = "" + Math.abs(first4);

Signup(){

setTitle("NEW ACCOUNT APPLICATION FORM");

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);

l1 = new JLabel("APPLICATION FORM NO. "+first);


l1.setFont(new Font("Raleway", Font.BOLD, 38));

l2 = new JLabel("Page 1: Personal Details");


l2.setFont(new Font("Raleway", Font.BOLD, 22));

l3 = new JLabel("Name:");
l3.setFont(new Font("Raleway", Font.BOLD, 20));

l4 = new JLabel("Father's Name:");


l4.setFont(new Font("Raleway", Font.BOLD, 20));

l5 = new JLabel("Date of Birth:");


l5.setFont(new Font("Raleway", Font.BOLD, 20));

l6 = new JLabel("Gender:");
l6.setFont(new Font("Raleway", Font.BOLD, 20));

l7 = new JLabel("Email Address:");


29
l7.setFont(new Font("Raleway", Font.BOLD, 20));

l8 = new JLabel("Marital Status:");


l8.setFont(new Font("Raleway", Font.BOLD, 20));

l9 = new JLabel("Address:");
l9.setFont(new Font("Raleway", Font.BOLD, 20));

l10 = new JLabel("City:");


l10.setFont(new Font("Raleway", Font.BOLD, 20));

l11 = new JLabel("Pin Code:");


l11.setFont(new Font("Raleway", Font.BOLD, 20));

l12 = new JLabel("State:");


l12.setFont(new Font("Raleway", Font.BOLD, 20));

l13 = new JLabel("Date");


l13.setFont(new Font("Raleway", Font.BOLD, 14));

l14 = new JLabel("Month");


l14.setFont(new Font("Raleway", Font.BOLD, 14));

l15 = new JLabel("Year");


l15.setFont(new Font("Raleway", Font.BOLD, 14));

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);

ButtonGroup groupgender = new ButtonGroup();


groupgender.add(r1);
groupgender.add(r2);

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);

ButtonGroup groupstatus = new ButtonGroup();


groupstatus.add(r3);
groupstatus.add(r4);
groupstatus.add(r5);

dateChooser = new JDateChooser();


//dateChooser.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
dateChooser.setForeground(new Color(105, 105, 105));
dateChooser.setBounds(137, 337, 200, 29);
add(dateChooser);

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);

dateChooser.setBounds(300, 240, 400, 30);


31
l6.setBounds(100,290,200,30);
add(l6);

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);
}

public void actionPerformed(ActionEvent ae){

String formno = first;


String name = t1.getText();
String fname = t2.getText();
String dob = ((JTextField) dateChooser.getDateEditor().getUiComponent()).getText();
String gender = null;
if(r1.isSelected()){
gender = "Male";
}else if(r2.isSelected()){
gender = "Female";
}

String email = t3.getText();


String marital = null;
if(r3.isSelected()){
marital = "Married";
}else if(r4.isSelected()){
marital = "Unmarried";
}else if(r5.isSelected()){
marital = "Other";
}

String address = t4.getText();


String city = t5.getText();
String pincode = t6.getText();
String state = t7.getText();

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
}

public static void main(String[] args){


new Signup().setVisible(true);
}
}

Signup page 2

package ASimulatorSystem;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;

public class Signup2 extends JFrame implements ActionListener{

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");

l1 = new JLabel("Page 2: Additonal Details");


l1.setFont(new Font("Raleway", Font.BOLD, 22));

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));

l7 = new JLabel("PAN Number:");


l7.setFont(new Font("Raleway", Font.BOLD, 18));

l8 = new JLabel("Aadhar Number:");


l8.setFont(new Font("Raleway", Font.BOLD, 18));

l9 = new JLabel("Senior Citizen:");


l9.setFont(new Font("Raleway", Font.BOLD, 18));

l10 = new JLabel("Existing Account:");


l10.setFont(new Font("Raleway", Font.BOLD, 18));

l12 = new JLabel("Form No:");


l12.setFont(new Font("Raleway", Font.BOLD, 13));

l13 = new JLabel(formno);


l13.setFont(new Font("Raleway", Font.BOLD, 13));

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);

String religion[] = {"Hindu","Muslim","Sikh","Christian","Other"};


c1 = new JComboBox(religion);
c1.setBackground(Color.WHITE);
c1.setFont(new Font("Raleway", Font.BOLD, 14));
35
String category[] = {"General","OBC","SC","ST","Other"};
c2 = new JComboBox(category);
c2.setBackground(Color.WHITE);
c2.setFont(new Font("Raleway", Font.BOLD, 14));

String income[] = {"Null","<1,50,000","<2,50,000","<5,00,000","Upto 10,00,000","Above


10,00,000"};
c3 = new JComboBox(income);
c3.setBackground(Color.WHITE);
c3.setFont(new Font("Raleway", Font.BOLD, 14));

String education[] = {"Non-Graduate","Graduate","Post-Graduate","Doctrate","Others"};


c4 = new JComboBox(education);
c4.setBackground(Color.WHITE);
c4.setFont(new Font("Raleway", Font.BOLD, 14));

String occupation[] = {"Salaried","Self-Employmed","Business","Student","Retired","Others"};


c5 = new JComboBox(occupation);
c5.setBackground(Color.WHITE);
c5.setFont(new Font("Raleway", Font.BOLD, 14));

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);
}

public void actionPerformed(ActionEvent ae){


String religion = (String)c1.getSelectedItem();
String category = (String)c2.getSelectedItem();
String income = (String)c3.getSelectedItem();
37
String education = (String)c4.getSelectedItem();
String occupation = (String)c5.getSelectedItem();

String pan = t1.getText();


String aadhar = t2.getText();

String scitizen = "";


if(r1.isSelected()){
scitizen = "Yes";
}
else if(r2.isSelected()){
scitizen = "No";
}

String eaccount = "";


if(r3.isSelected()){
eaccount = "Yes";
}else if(r4.isSelected()){
eaccount = "No";
}

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();
}

public static void main(String[] args){


new Signup2("").setVisible(true);
}
}

38
SignUp page3

package ASimulatorSystem;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java.util.*;

public class Signup3 extends JFrame implements ActionListener{

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);

l1 = new JLabel("Page 3: Account Details");


l1.setFont(new Font("Raleway", Font.BOLD, 22));

l2 = new JLabel("Account Type:");


l2.setFont(new Font("Raleway", Font.BOLD, 18));

l3 = new JLabel("Card Number:");


l3.setFont(new Font("Raleway", Font.BOLD, 18));

l4 = new JLabel("XXXX-XXXX-XXXX-4184");
l4.setFont(new Font("Raleway", Font.BOLD, 18));

l5 = new JLabel("(Your 16-digit Card number)");


l5.setFont(new Font("Raleway", Font.BOLD, 12));

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));

l9 = new JLabel("(4-digit password)");


l9.setFont(new Font("Raleway", Font.BOLD, 12));

l10 = new JLabel("Services Required:");


l10.setFont(new Font("Raleway", Font.BOLD, 18));

l11 = new JLabel("Form No:");


l11.setFont(new Font("Raleway", Font.BOLD, 14));

l12 = new JLabel(formno);


l12.setFont(new Font("Raleway", Font.BOLD, 14));

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);

c1 = new JCheckBox("ATM CARD");


c1.setBackground(Color.WHITE);
c1.setFont(new Font("Raleway", Font.BOLD, 16));

c2 = new JCheckBox("Internet Banking");


c2.setBackground(Color.WHITE);
c2.setFont(new Font("Raleway", Font.BOLD, 16));

c3 = new JCheckBox("Mobile Banking");


c3.setBackground(Color.WHITE);
c3.setFont(new Font("Raleway", Font.BOLD, 16));

c4 = new JCheckBox("EMAIL Alerts");


c4.setBackground(Color.WHITE);
c4.setFont(new Font("Raleway", Font.BOLD, 16));
40
c5 = new JCheckBox("Cheque Book");
c5.setBackground(Color.WHITE);
c5.setFont(new Font("Raleway", Font.BOLD, 16));

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));

r1 = new JRadioButton("Saving Account");


r1.setFont(new Font("Raleway", Font.BOLD, 16));
r1.setBackground(Color.WHITE);

r2 = new JRadioButton("Fixed Deposit Account");


r2.setFont(new Font("Raleway", Font.BOLD, 16));
r2.setBackground(Color.WHITE);

r3 = new JRadioButton("Current Account");


r3.setFont(new Font("Raleway", Font.BOLD, 16));
r3.setBackground(Color.WHITE);

r4 = new JRadioButton("Recurring Deposit Account");


r4.setFont(new Font("Raleway", Font.BOLD, 16));
r4.setBackground(Color.WHITE);

ButtonGroup groupgender = new ButtonGroup();


groupgender.add(r1);
groupgender.add(r2);
groupgender.add(r3);
groupgender.add(r4);

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);

public void actionPerformed(ActionEvent ae){


String atype = null;
if(r1.isSelected()){
atype = "Saving Account";
}
else if(r2.isSelected()){
atype = "Fixed Deposit Account";
}
else if(r3.isSelected()){
atype = "Current Account";
}else if(r4.isSelected()){
atype = "Recurring Deposit Account";
}

Random ran = new Random();


43
long first7 = (ran.nextLong() % 90000000L) + 5040936000000000L;
String cardno = "" + Math.abs(first7);

long first3 = (ran.nextLong() % 9000L) + 1000L;


String pin = "" + Math.abs(first3);

String facility = "";


if(c1.isSelected()){
facility = facility + " ATM Card";
}
if(c2.isSelected()){
facility = facility + " Internet Banking";
}
if(c3.isSelected()){
facility = facility + " Mobile Banking";
}
if(c4.isSelected()){
facility = facility + " EMAIL Alerts";
}
if(c5.isSelected()){
facility = facility + " Cheque Book";
}
if(c6.isSelected()){
facility = facility + " E-Statement";
}

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();
}

public static void main(String[] args){


new Signup3("").setVisible(true);
}

Transaction
package ASimulatorSystem;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;

public class Transactions extends JFrame implements ActionListener{

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);

l1 = new JLabel("Please Select Your Transaction");


l1.setForeground(Color.WHITE);
l1.setFont(new Font("System", Font.BOLD, 16));

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
}

public void actionPerformed(ActionEvent ae){


if(ae.getSource()==b1){
setVisible(false);
new Deposit(pin).setVisible(true);
}else if(ae.getSource()==b2){
setVisible(false);
new Withdrawl(pin).setVisible(true);
}else if(ae.getSource()==b3){
setVisible(false);
new FastCash(pin).setVisible(true);
}else if(ae.getSource()==b4){
new MiniStatement(pin).setVisible(true);
}else if(ae.getSource()==b5){
setVisible(false);
new Pin(pin).setVisible(true);
}else if(ae.getSource()==b6){
this.setVisible(false);
new BalanceEnquiry(pin).setVisible(true);
}else if(ae.getSource()==b7){
System.exit(0);
}
}

public static void main(String[] args){


new Transactions("").setVisible(true);
}
}

47
Withdrawal
package ASimulatorSystem;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.Date;
import java.sql.*;

public class Withdrawl extends JFrame implements ActionListener{

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);

l1 = new JLabel("MAXIMUM WITHDRAWAL IS RS.10,000");


l1.setForeground(Color.WHITE);
l1.setFont(new Font("System", Font.BOLD, 16));

l2 = new JLabel("PLEASE ENTER YOUR AMOUNT");


l2.setForeground(Color.WHITE);
l2.setFont(new Font("System", Font.BOLD, 16));

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);
}

public void actionPerformed(ActionEvent ae){


try{
String amount = t1.getText();
Date date = new Date();
if(ae.getSource()==b1){
if(t1.getText().equals("")){
JOptionPane.showMessageDialog(null, "Please enter the Amount to you want to
Withdraw");
}else{
Conn c1 = new Conn();

ResultSet rs = c1.s.executeQuery("select * from bank where pin = '"+pin+"'");


int balance = 0;
while(rs.next()){
if(rs.getString("mode").equals("Deposit")){
balance += Integer.parseInt(rs.getString("amount"));
}else{
balance -= Integer.parseInt(rs.getString("amount"));
}
}
if(balance < Integer.parseInt(amount)){
JOptionPane.showMessageDialog(null, "Insuffient Balance");
return;
}

c1.s.executeUpdate("insert into bank values('"+pin+"', '"+date+"', 'Withdrawl',


'"+amount+"')");
JOptionPane.showMessageDialog(null, "Rs. "+amount+" Debited Successfully");

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.*;

public class Deposit extends JFrame implements ActionListener{

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);

l1 = new JLabel("ENTER AMOUNT YOU WANT TO DEPOSIT");


l1.setForeground(Color.WHITE);
l1.setFont(new Font("System", Font.BOLD, 16));

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);
}

public void actionPerformed(ActionEvent ae){


try{
String amount = t1.getText();
Date date = new Date();
if(ae.getSource()==b1){
if(t1.getText().equals("")){
JOptionPane.showMessageDialog(null, "Please enter the Amount to you want to Deposit");
}else{
Conn c1 = new Conn();
c1.s.executeUpdate("insert into bank values('"+pin+"', '"+date+"', 'Deposit',
'"+amount+"')");
JOptionPane.showMessageDialog(null, "Rs. "+amount+" Deposited Successfully");
setVisible(false);
new Transactions(pin).setVisible(true);
}
}else if(ae.getSource()==b2){
setVisible(false);
new Transactions(pin).setVisible(true);
}
}catch(Exception e){
e.printStackTrace();
}

public static void main(String[] args){


new Deposit("").setVisible(true);
}
}

Balance enquiry

package ASimulatorSystem;
51
import java.awt.*;
import java.awt.event.*;
import java.sql.ResultSet;
import javax.swing.*;
import java.util.*;

class BalanceEnquiry extends JFrame implements ActionListener {

JTextField t1, t2;


JButton b1, b2, b3;
JLabel l1, l2, l3;
String pin;

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);

l1.setBounds(190, 350, 400, 35);


l3.add(l1);

b1.setBounds(390, 633, 150, 35);


l3.add(b1);
int balance = 0;
try{
Conn c1 = new Conn();
ResultSet rs = c1.s.executeQuery("select * from bank where pin = '"+pin+"'");
while (rs.next()) {
if (rs.getString("mode").equals("Deposit")) {
balance += Integer.parseInt(rs.getString("amount"));
} else {
balance -= Integer.parseInt(rs.getString("amount"));
}
}
}catch(Exception e){}

l1.setText("Your Current Account Balance is Rs "+balance);

b1.addActionListener(this);

52
setSize(960, 1080);
setUndecorated(true);
setLocation(500, 0);
setVisible(true);
}

public void actionPerformed(ActionEvent ae) {


setVisible(false);
new Transactions(pin).setVisible(true);
}

public static void main(String[] args) {


new BalanceEnquiry("").setVisible(true);
}
}

Pin changes
package ASimulatorSystem;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;

public class Pin extends JFrame implements ActionListener{

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);

l1 = new JLabel("CHANGE YOUR PIN");


l1.setFont(new Font("System", Font.BOLD, 16));
l1.setForeground(Color.WHITE);

l2 = new JLabel("New PIN:");


l2.setFont(new Font("System", Font.BOLD, 16));
l2.setForeground(Color.WHITE);

l3 = new JLabel("Re-Enter New PIN:");


l3.setFont(new Font("System", Font.BOLD, 16));
l3.setForeground(Color.WHITE);

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);

public void actionPerformed(ActionEvent ae){


try{
String npin = t1.getText();
String rpin = t2.getText();

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");
}

Conn c1 = new Conn();


String q1 = "update bank set pin = '"+rpin+"' where pin = '"+pin+"' ";
String q2 = "update login set pin = '"+rpin+"' where pin = '"+pin+"' ";
String q3 = "update signup3 set pin = '"+rpin+"' where pin = '"+pin+"' ";

c1.s.executeUpdate(q1);
c1.s.executeUpdate(q2);
c1.s.executeUpdate(q3);

JOptionPane.showMessageDialog(null, "PIN changed successfully");


setVisible(false);
new Transactions(rpin).setVisible(true);

}else if(ae.getSource()==b2){
new Transactions(pin).setVisible(true);
setVisible(false);
}
}catch(Exception e){
e.printStackTrace();
}
}

public static void main(String[] args){


new Pin("").setVisible(true);
}
}

Fast Cash

package ASimulatorSystem;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java.util.Date;

public class FastCash extends JFrame implements ActionListener {

JLabel l1, l2;


JButton b1, b2, b3, b4, b5, b6, b7, b8;
JTextField t1;
String pin;

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);

l1 = new JLabel("SELECT WITHDRAWL AMOUNT");


l1.setForeground(Color.WHITE);
l1.setFont(new Font("System", Font.BOLD, 16));

b1 = new JButton("Rs 100");


b2 = new JButton("Rs 500");
b3 = new JButton("Rs 1000");
b4 = new JButton("Rs 2000");
b5 = new JButton("Rs 5000");
b6 = new JButton("Rs 10000");
b7 = new JButton("BACK");

setLayout(null);

l1.setBounds(235, 400, 700, 35);


l3.add(l1);

b1.setBounds(170, 499, 150, 35);


l3.add(b1);

b2.setBounds(390, 499, 150, 35);


l3.add(b2);

b3.setBounds(170, 543, 150, 35);


l3.add(b3);

b4.setBounds(390, 543, 150, 35);


l3.add(b4);

b5.setBounds(170, 588, 150, 35);


l3.add(b5);

b6.setBounds(390, 588, 150, 35);


l3.add(b6);

b7.setBounds(390, 633, 150, 35);


l3.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);
56
setUndecorated(true) ;
setVisible(true);

public void actionPerformed(ActionEvent ae) {


try {
String amount = ((JButton)ae.getSource()).getText().substring(3); //k
Conn c = new Conn();
ResultSet rs = c.s.executeQuery("select * from bank where pin = '"+pin+"'");
int balance = 0;
while (rs.next()) {
if (rs.getString("mode").equals("Deposit")) {
balance += Integer.parseInt(rs.getString("amount"));
} else {
balance -= Integer.parseInt(rs.getString("amount"));
}
} String num = "17";
if (ae.getSource() != b7 && balance < Integer.parseInt(amount)) {
JOptionPane.showMessageDialog(null, "Insuffient Balance");
return;
}

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();
}

public static void main(String[] args) {


new FastCash("").setVisible(true);
}
}

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.

2. The information of projects can be providing very easy

3. Networking administrator can be managing this software.

4. Modules is use to cash withdrawal & deposit the very easy.

5. To utilize resources in an efficient manner by increasing their


productivity through automation.

The system generates type of information that can be used for various
purpose.

The above- mentioned points are the enhancements which can be


done to increase the applicability and usage of this project. Here we can
maintain the records of employees and projects. Also, as it can be seen
that now –a-days the players are versatile that is so there is scope for
introducing a method to maintain the BANK MANAGEMENT
SYSTEM.

59
Bibliography

Following books and eBook are used to complete this


project reports.

I. Mastering JAVA Neat Beans

a. Author Tata McGraw-Hill’s

b. Publisher Black Book Publication

II. Oracle The Complete Reference

a. Author Robert Koch

b. Publication Tata McGraw-Hill

III. SQL, PL/SQL The Programming Language of Oracle

a. Author Ivan Bayross


b. Publication BPB Publication

IV. Software Engineering Apractitioner’s Approach

a. Author Roger S. Pressman


b. Publication Tata McGraw-Hill

V. Fundamentals of Software Engineering

a. Author Carlo Ghezzi, Mehdi Jazayeri, DinoMandrioli


b. Publisher Prentice Hall of India

60

You might also like