Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Project470 1

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 85

INTRODUTION

THE BANK MANAGEMENT SYSTEM IS AN


APPLICATION FOR MAINTAINING A PERSON'S ACCOUNT IN A BANK.

To develop a software for solving financial applications of a


customer in banking environment in order to nurture the
needs of an banking user by providing various ways to perform
banking tasks. Also to enable the users workspace to have
additional functionalities which are not provided under a
conventional banking software.

In this project we are going to explain about Banking


Management System. This project has options to open account,
depositing and withdrawing of money. The Bank management
system is an application for maintaining a person’s account in a
bank. The following presentation provides the specification for
the system.
A C K N O W L E D G E M E NT
I would like to express my gratitude to those who have helped me
directly or indirectly and inspired me during the preparation of this project.
My sincere thanks to everyone for successful completion of the project
work.
First of all, I would like to convey my heartful regards to
Mr.RATIKANTA BISWAL(Coordinator,Dept. of ITM)for giving me such
a wonderful opportunity to explore my knowledge.
I would also like to thank Dr. Ratikanta Biswal (Coordinator, Dept.
of Information Technology Management) for his continuous
encouragement.
Last but not the least my deepest regard goes to all my respected
teachers of the department for their unflagging love and moral support
throughout the project work.

Name : DEBASISH
ROUTRAY
Roll No.: 21DIT080
DEPARTMENT OF INFORMATION TECHNOLOGY MANAGEMENT
RAVENSHAW UNIVERSITY, CUTTACK

-------------------------------------------
----
DECLARATION
I do hereby declare that the project entitled with “BANKING
MANAGEMENT SYSTEM” submitted to the Department of Information
Technology Management, Ravenshaw University, Cuttack, Odisha in
partial fulfillment for the award of Bachelor of Science in Information
Technology Management is an original piece of work done by me.

Name:DEBASIS
ROUTRAY
Roll No.: 21DIT080
INTRODUTION

“THE BANK MANAGEMENT SYSTEM IS AN


APPLICATION FOR MAINTAINING A PERSON'S
ACCOUNT IN A BANK.”

To develop a software for solving financial


applications of a customer in banking
environment in order to nurture the needs of
an banking user by providing various ways to
perform banking tasks. Also to enable the users
workspace to have additional functionalities
which are not provided under a conventional
banking software.

In this project we are going to explain about


Banking Management System. This project has
options to open account, depositing and
withdrawing of money. The Bank management
system is an application for maintaining a
person’s account in a bank. The following
presentation provides the specification for the
system.
1.1Project Aims and Objectives

The existing system work manually. The existing


system has a lot of intricacies within itself and needs
lot of human effort and paper works. All above the
data needs to be maintained on ledgers and
maintaining this is a tedious and risky process. As the
transactions increases, so the data too. The task of
maintaining them increases exponentially. To view a
data may need lot of paper to be searched.

Some of the negative aspects of the existing system are as


follows:

1) Time Consuming:

It takes a lot of time in the bank,


whenever we open account, deposit, withdraw
or pass a loan. It could be a lot more tedious if
there are a lot of people.

2) Reliability:

This banking system is not fully reliable


whenever the computer system creates a
problem and does not work properly then
sometimes our data is damaged or lost.

3) Man Power:
In this project man power is fully used. A number
of employees needed to
manage the banking system.
1) Less Accurate:

this system is not fully accurate, because sometimes


the computer system gives us errors due to technical
defects and there are hardware limitations, errors
too.

To overcome these, the proposed system has been


suggested.

PROPOSED SYSTEM:

In this project we are going to explain about Banking


Management System. This project have facility to
opening account, depositing and withdrawing money.
The proposed system is a computerized one. This has
greater accuracy and efficiency. This takes only
limited time for calculation.

The proposed system can be used to maintain


efficiently the BANKING schedule. In larger
organizations employees are large. At that time also
the proposed system is useful and helpful. The
system includes users Administrator(HR) level.
In this project we have a admi login feature, we
wantto fill the admin and password then we enter to
home page, The home page facility show all the
include features about this banking project. We have
a number of options like open account, delete
account, modify account, add employee record,
delete employee record, modify employee record,
deposit money, withdraw money and loan facility
also available, we can easily choose any option
according to our own requirement. We have also
feature of validation

REQUIREMENT:

 Functional Requirements
 Non- Functional Requirements
 System Requirements

Functional requirements:

 User basic graphical tools such


as shapes, objects, brushes, colour tools, eraser etc.
 Should allow free hand drawing, object shapes such
as circle, ellipse, rectangle, polygon.

 Should allow the usage of different colors in the form


of brushes, shapes, curves.

Manage the picture with tools such as pencil, airbrush, clear all.
Non-Functional requirements:

 Must provide the program in vivid colours and format.

 Should have adaptability to allow usage of single


module at a time.

 Must enable faster processing of operations when a


module is selected.

System Requirements:

Hardware requirements:

Processor: Pentium IV

RAM:128MB

required HARD

DISK: 1GB
Software requirements:

JDK 1.5

MYSQL

Operation Management

PrProcessor Intel Core Processor


O operating system Windows 10
Memory 1 1GB
Hard Disk Space Minimum 3GB for Database
Language Java 1.8
IDE Tool NetBeans 8.0.2
R DBMS MMYSQL
CHAPTER-III
TECHNICAL ASPECTS
3.1. JAVA IDE
In the context of computing, Eclipse is an integrated development
environment (IDE) for developing applications using the Java programming
language and other programming languages such as C/C++, Python, PERL,
Ruby etc.
The Eclipse platform which provides the foundation for the Eclipse IDE
is composed of plug-ins and is designed to be extensible using additional plug-
ins. Developed using Java, the Eclipse platform can be used to develop rich
client applications, integrated development environments and other tools.
Eclipse can be used as an IDE for any programming language for which a plug-
in is available. An IDE normally consists of:
1. a source code editor
2. a compiler and/or an interpreter
3. build automation tools
4. a debugger.
3.2. JAVA
Java is a high-level programming language developed by Sun
Microsystems. It was originally designed for developing programs for set-top
boxes and handheld devices, but later became a popular choice for creating
web applications.
The Java syntax is similar to C++, but is strictly an object-oriented
programming language. For example, most Java programs contain classes,
which are used to define objects, and methods, which are assigned to individual
classes. Java is also known for being stricter than C++, meaning variables and
functions must be explicitly defined. This means Java source code may produce
errors or "exceptions" more easily than other languages, but it also limits other
types of errors that may be caused by undefined variables or unassigned types.
Unlike Windows executables (.EXE files) or Macintosh applications
(.APP files), Java programs are not run directly by the operating system.
Instead, Java programs are interpreted by the Java Virtual Machine, or JVM,
which runs on multiple platforms. This means all Java programs are
multiplatform and can run on different platforms, including Macintosh,
Windows, and Unix computers. However, the JVM must be installed for Java
applications or applets to run at all. Fortunately, the JVM is included as part of
the Java Runtime Environment (JRE), which is available as a free download.

3.3. NetBeans IDE


NetBeans IDE can be used to create Java applications easily. It has an
efficient GUI builder. NetBeans offers many features for application
developments. Some of them are as follows.
 Drag-drop GUI creation
 Advanced source code editor
 Web-services
 Excellent debugging
 Wizards, code generation and management tools and many more.
Different components of NetBeans IDE are as follows:
 Title bar: The title bar is on the top of the window, containing the name
of application.
 Menu bar: Below the title bar, there is a menu bar. It contains many
options, i.e., pull down menu. These options can be used to perform
various tasks.
 Toolbar: Toolbar contains many small icons for performing various tasks.
 GUI Builder: It is also known as Design Area or Design Space. It is an
area to place components and construct GUI application visually. There
are two types of views of the GUI builder, the Design View and the
Source View. In Design View, you can see the user interface of your
application while in Source View, you can add/edit the code for your
application. We can switch over from one view to another by simply
clicking on the source and design tabs directly above the design area.
 Palette: Palette contains controls or components used to create GUI
applications.
 Inspector Window: This window is used to display a hierarchy of all the
components or controls placed on the current form.
 Properties Window: Using this window, we can make changes in the
properties of currently selected control on the form.
 Code Editor Window: It is the area where we write code for our Java
applications. This window is displayed when we click on the source tab.
3.4. My-SQL
MySQL is a freely available open-source Relational Database
Management System (RDBMS) that uses Structured Query Language (SQL).
SQL is the most popular language for adding, accessing and managing content
in a database. It is most noted for its quick processing, proven reliability, ease
and flexibility of use. MySQL is a fast, easy-to-use RDBMS being used for many
small and big businesses. MySQL is developed, marketed and supported by
MySQL AB, which is a Swedish company. MySQL is becoming so popular
because of many good reasons −
 MySQL is released under an open-source license. So, we have nothing to
pay to use it.
 MySQL is a very powerful program in its own right. It handles a large
subset of the functionality of the most expensive and powerful database
packages.
 MySQL uses a standard form of the well-known SQL data language.
 MySQL works on many operating systems and with many languages
including PHP, PERL, C, C++, JAVA, etc.
 MySQL works very quickly and works well even with large data sets.
 MySQL is very friendly to PHP, the most appreciated language for web
development.
 MySQL supports large databases, up to 50 million rows or more in a
table. The default file size limit for a table is 4GB, but you can increase this (if
the operating system can handle it) to a theoretical limit of 8 million terabytes
(TB).
 MySQL is customizable. The open-source GPL license allows
programmers to modify the MySQL software to fit their own specific
environments.
MODULES IN SYSTEM:
There are tweleve modules in this system
CHAPTER IV

LOGIN PAGE CODING:

package bank.management.system;

import java.awt.Color;

import java.awt.Component;

import java.awt.Font;

import java.awt.Image;

import java.awt.LayoutManager;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.sql.ResultSet;

import javax.swing.ImageIcon;

import javax.swing.JButton;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JOptionPane;

import javax.swing.JPasswordField;

import javax.swing.JTextField;
public class Login extends JFrame implements ActionListener {

JLabel label1;

JLabel label2;

JLabel label3;

JTextField textField2;

JPasswordField passwordField2;

JButton button1;

JButton button2;

JButton button3;

Login() {

super("BANKING MANAGEMENT SYSTEM");

ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/bank.png"));

Image i2 = i1.getImage().getScaledInstance(100, 100, 1);

ImageIcon i3 = new ImageIcon(i2);

JLabel image = new JLabel(i3);

image.setBounds(350, 10, 100, 100);

this.add(image);

ImageIcon ii1 = new


ImageIcon(ClassLoader.getSystemResource("icon/card.png"));
Image ii2 = ii1.getImage().getScaledInstance(100, 100, 1);

ImageIcon ii3 = new ImageIcon(ii2);

JLabel iimage = new JLabel(ii3);

iimage.setBounds(630, 350, 100, 100);

this.add(iimage);

this.label1 = new JLabel(" WELCOME TO OUR SERVICE");

this.label1.setForeground(Color.ORANGE);

this.label1.setFont(new Font("AvantGarde", 1, 38));

this.label1.setBounds(150, 125, 580, 40);

this.add(this.label1);

this.label2 = new JLabel(" CARD NO:");

this.label2.setForeground(Color.ORANGE);

this.label2.setFont(new Font("Ralway", 1, 28));

this.label2.setBounds(160, 190, 375, 30);

this.add(this.label2);

this.textField2 = new JTextField(15);

this.textField2.setBounds(325, 190, 230, 30);

this.textField2.setFont(new Font("Arial", 1, 14));

this.add(this.textField2);

this.label3 = new JLabel(" PIN NO:");

this.label3.setForeground(Color.ORANGE);
this.label3.setFont(new Font("Ralway", 1, 28));

this.label3.setBounds(160, 250, 375, 30);

this.add(this.label3);

this.passwordField2 = new JPasswordField(15);

this.passwordField2.setBounds(325, 250, 230, 30);

this.passwordField2.setFont(new Font("Arial", 1, 14));

this.add(this.passwordField2);

this.button1 = new JButton("SIGN IN");

this.button1.setFont(new Font("Arial", 1, 14));

this.button1.setForeground(Color.black);

this.button1.setBounds(325, 300, 100, 30);

this.button1.addActionListener(this);

this.add(this.button1);

this.button2 = new JButton("CLEAR");

this.button2.setFont(new Font("Arial", 1, 14));

this.button2.setForeground(Color.black);

this.button2.setBounds(460, 300, 100, 30);

this.button2.addActionListener(this);

this.add(this.button2);

this.button3 = new JButton("SIGN UP");

this.button3.setFont(new Font("Arial", 1, 14));


this.button3.setForeground(Color.black);

this.button3.setBounds(325, 350, 230, 30);

this.button3.addActionListener(this);

this.add(this.button3);

ImageIcon iii1 = new


ImageIcon(ClassLoader.getSystemResource("icon/nam.jpg"));

Image iii2 = iii1.getImage().getScaledInstance(850, 480, 1);

ImageIcon iii3 = new ImageIcon(iii2);

JLabel iiimage = new JLabel(iii3);

iiimage.setBounds(0, 0, 840, 480);

this.add(iiimage);

this.setLayout((LayoutManager)null);

this.setSize(850, 480);

this.setLocation(450, 200);

this.setUndecorated(true);

this.setVisible(true);

public void actionPerformed(ActionEvent e) {

try {

if (e.getSource() == this.button1) {
connect c = new connect();

String card_no = this.textField2.getText();

String pin = this.passwordField2.getText();

String q = "select * from login where Card_no ='" + card_no + "'and


pin='" + pin + "'";

ResultSet resuitset = c.statement.executeQuery(q);

if (resuitset.next()) {

this.setVisible(false);

new main_class(pin);

} else {

JOptionPane.showMessageDialog((Component)null, "INCORRECT
CARD_NO AND PIN_NO");

} else if (e.getSource() == this.button2) {

this.textField2.setText("");

this.passwordField2.setText("");

} else if (e.getSource() == this.button3) {

new Signup();

this.setVisible(false);

} catch (Exception var7) {


var7.printStackTrace();

public static void main(String[] args) {

new Login();

}
SIGNUP PAGE CODING:

package bank.management.system;

import com.toedter.calendar.JDateChooser;

import java.awt.Color;

import java.awt.Component;

import java.awt.Font;

import java.awt.Image;

import java.awt.LayoutManager;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.util.Random;

import javax.swing.ButtonGroup;

import javax.swing.ImageIcon;

import javax.swing.JButton;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JOptionPane;

import javax.swing.JRadioButton;

import javax.swing.JTextField;

public class Signup extends JFrame implements ActionListener {


JButton next;

JRadioButton r1;

JRadioButton r2;

JRadioButton r3;

JRadioButton r4;

JRadioButton r5;

JRadioButton r6;

JTextField textName;

JTextField textFname;

JTextField textEm;

JTextField textadd;

JTextField textcity;

JTextField textpin;

JTextField textstate;

JDateChooser dateChooser;

Random ran = new Random();

long first4;

String first;

Signup() {

super("APPLICATION FORM");
this.first4 = this.ran.nextLong() % 9000L + 1000L;

this.first = " " + Math.abs(this.first4);

ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("icon/page1.jpg"));

Image i2 = i1.getImage().getScaledInstance(100, 110, 1);

ImageIcon i3 = new ImageIcon(i2);

JLabel image = new JLabel(i3);

image.setBounds(25, 20, 100, 100);

this.add(image);

new ImageIcon(ClassLoader.getSystemResource("icon/page1.jpg"));

Image ii2 = i1.getImage().getScaledInstance(100, 110, 1);

ImageIcon ii3 = new ImageIcon(ii2);

JLabel iimage = new JLabel(ii3);

iimage.setBounds(720, 20, 100, 100);

this.add(iimage);

JLabel label1 = new JLabel("APPLICATION FROM NO:" + this.first4);

label1.setBounds(160, 20, 600, 40);

label1.setFont(new Font("Releway", 1, 38));

this.add(label1);

JLabel label3 = new JLabel("PERSONAL DETAILS");

label3.setBounds(290, 130, 600, 30);

label3.setFont(new Font("Releway", 1, 22));


this.add(label3);

JLabel labelName = new JLabel("Name");

labelName.setForeground(Color.ORANGE);

labelName.setBounds(100, 190, 100, 30);

labelName.setFont(new Font("Releway", 1, 22));

this.add(labelName);

this.textName = new JTextField();

this.textName.setFont(new Font("Releway", 1, 14));

this.textName.setBounds(300, 190, 400, 30);

this.add(this.textName);

JLabel labelFname = new JLabel("FathersName:");

labelFname.setForeground(Color.ORANGE);

labelFname.setBounds(100, 240, 200, 30);

labelFname.setFont(new Font("Releway", 1, 22));

this.add(labelFname);

this.textFname = new JTextField();

this.textFname.setFont(new Font("Releway", 1, 14));

this.textFname.setBounds(300, 240, 400, 30);

this.add(this.textFname);

JLabel DOB = new JLabel("Date Of Birth:");

DOB.setForeground(Color.ORANGE);
DOB.setBounds(100, 290, 200, 30);

DOB.setFont(new Font("Releway", 1, 22));

this.add(DOB);

this.dateChooser = new JDateChooser();

this.dateChooser.setForeground(new Color(105, 105, 105));

this.dateChooser.setBounds(300, 290, 400, 30);

this.add(this.dateChooser);

JLabel labelG = new JLabel("Gender:");

labelG.setForeground(Color.ORANGE);

labelG.setBounds(100, 340, 200, 30);

labelG.setFont(new Font("Releway", 1, 22));

this.add(labelG);

this.r1 = new JRadioButton("Male");

this.r1.setFont(new Font("Raleway", 1, 14));

this.r1.setBounds(300, 340, 60, 30);

this.add(this.r1);

this.r2 = new JRadioButton("Female");

this.r2.setFont(new Font("Raleway", 1, 14));

this.r2.setBounds(380, 340, 90, 30);

this.add(this.r2);

this.r3 = new JRadioButton("Transgender");


this.r3.setFont(new Font("Raleway", 1, 14));

this.r3.setBounds(500, 340, 140, 30);

this.add(this.r3);

ButtonGroup buttonGroup1 = new ButtonGroup();

buttonGroup1.add(this.r1);

buttonGroup1.add(this.r2);

buttonGroup1.add(this.r3);

JLabel labele = new JLabel("Email Id:");

labele.setForeground(Color.ORANGE);

labele.setFont(new Font("Releway", 1, 20));

labele.setBounds(100, 390, 200, 30);

this.add(labele);

this.textEm = new JTextField();

this.textEm.setFont(new Font("Releway", 1, 14));

this.textEm.setBounds(300, 390, 400, 30);

this.add(this.textEm);

JLabel labelmar = new JLabel("married status:");

labelmar.setForeground(Color.ORANGE);

labelmar.setFont(new Font("Releway", 1, 20));

labelmar.setBounds(100, 440, 200, 30);

this.add(labelmar);
this.r4 = new JRadioButton("Married");

this.r4.setFont(new Font("Raleway", 1, 14));

this.r4.setBounds(300, 440, 100, 30);

this.add(this.r4);

this.r5 = new JRadioButton("Unmarried");

this.r5.setFont(new Font("Raleway", 1, 14));

this.r5.setBounds(400, 440, 100, 30);

this.add(this.r5);

this.r6 = new JRadioButton("Other");

this.r6.setFont(new Font("Raleway", 1, 14));

this.r6.setBounds(500, 440, 100, 30);

this.add(this.r6);

ButtonGroup buttonGroup2 = new ButtonGroup();

buttonGroup2.add(this.r4);

buttonGroup2.add(this.r5);

buttonGroup2.add(this.r6);

JLabel labeladd = new JLabel("Address:");

labeladd.setForeground(Color.ORANGE);

labeladd.setFont(new Font("Releway", 1, 18));

labeladd.setBounds(100, 490, 100, 30);

this.add(labeladd);
this.textadd = new JTextField();

this.textadd.setFont(new Font("Releway", 1, 14));

this.textadd.setBounds(300, 490, 400, 30);

this.add(this.textadd);

JLabel labelcity = new JLabel("City:");

labelcity.setForeground(Color.ORANGE);

labelcity.setFont(new Font("Releway", 1, 18));

labelcity.setBounds(100, 540, 100, 30);

this.add(labelcity);

this.textcity = new JTextField();

this.textcity.setFont(new Font("Releway", 1, 14));

this.textcity.setBounds(300, 540, 100, 30);

this.add(this.textcity);

JLabel labelpin = new JLabel("Pin:");

labelpin.setForeground(Color.ORANGE);

labelpin.setFont(new Font("Releway", 1, 18));

labelpin.setBounds(450, 540, 100, 30);

this.add(labelpin);

this.textpin = new JTextField();

this.textpin.setFont(new Font("Releway", 1, 14));

this.textpin.setBounds(500, 540, 100, 30);


this.add(this.textpin);

JLabel labelst = new JLabel("State:");

labelst.setForeground(Color.ORANGE);

labelst.setFont(new Font("Releway", 1, 18));

labelst.setBounds(100, 590, 100, 30);

this.add(labelst);

this.textstate = new JTextField();

this.textstate.setFont(new Font("Releway", 1, 14));

this.textstate.setBounds(300, 590, 100, 30);

this.add(this.textstate);

this.next = new JButton("Next>>");

this.next.setFont(new Font("Releway", 1, 18));

this.next.setBounds(600, 590, 100, 30);

this.next.setBackground(Color.BLACK);

this.next.setForeground(Color.WHITE);

this.next.addActionListener(this);

this.add(this.next);

ImageIcon iii1 = new ImageIcon(ClassLoader.getSystemResource("icon/back.jpg"));

Image iii2 = iii1.getImage().getScaledInstance(850, 480, 1);

ImageIcon iii3 = new ImageIcon(iii2);

JLabel iiimage = new JLabel(iii3);


iiimage.setBounds(0, 0, 840, 810);

this.add(iiimage);

this.setLayout((LayoutManager)null);

this.setSize(850, 800);

this.setLocation(360, 40);

this.setUndecorated(true);

this.setVisible(true);

public void actionPerformed(ActionEvent e) {

String formno = this.first;

String name = this.textName.getText();

String fname = this.textFname.getText();

String dob = ((JTextField)this.dateChooser.getDateEditor().getUiComponent()).getText();

String gender = null;

if (this.r1.isSelected()) {

gender = "Male";

} else if (this.r2.isSelected()) {

gender = "Female";

} else if (this.r3.isSelected()) {

gender = "Tansgender";
}

String Email = this.textEm.getText();

String married = null;

if (this.r4.isSelected()) {

married = "married";

} else if (this.r5.isSelected()) {

married = "unmarried";

} else if (this.r6.isSelected()) {

married = "Other";

String addre = this.textadd.getText();

String city = this.textcity.getText();

String pin = this.textpin.getText();

String state = this.textstate.getText();

try {

if (this.textName.getText().equals("")) {

JOptionPane.showMessageDialog((Component)null, "Fill all the fields");

} else {
connect con1 = new connect();

String q = "insert into signup values('" + formno + "', '" + name + "', '" + fname + "','" +
dob + "','" + gender + "','" + married + "','" + Email + "','" + addre + "','" + city + "','" + pin + "','"
+ state + "')";

con1.statement.executeUpdate(q);

new signup2(formno);

this.setVisible(false);

} catch (Exception var15) {

var15.printStackTrace();

public static void main(String[] args) {

new Signup();

SIGNUP TWO PAGE CODING:


package bank.management.system;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

public class signup2 extends JFrame implements ActionListener {


JComboBox comboBox;
JComboBox comboBox2;
JComboBox comboBox3;
JComboBox comboBox4;
JComboBox comboBox5;
JTextField textaadh;
JTextField textpan;
JRadioButton r1;
JRadioButton r2;
JRadioButton r3;
JRadioButton r4;
JButton next;
String formno;

signup2(String formno) {
super("APPLICATION FORM");
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/bank.png"));
Image i2 = i1.getImage().getScaledInstance(100, 100, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(320, 10, 100, 100);
this.add(image);
this.formno = formno;
JLabel label1 = new JLabel("ADDITIONAL DETAILS");
label1.setBounds(150, 120, 600, 40);
label1.setForeground(Color.BLUE);
label1.setFont(new Font("Releway", 1, 38));
this.add(label1);
JLabel label11 = new JLabel("Religin:");
label11.setBounds(50, 180, 110, 40);
label11.setForeground(Color.BLACK);
label11.setFont(new Font("Releway", 1, 28));
this.add(label11);
String[] religion = new String[]{"", "Hindu", "Muslim", "Skih",
"Christian", "Other"};
this.comboBox = new JComboBox(religion);
this.comboBox.setForeground(Color.black);
this.comboBox.setFont(new Font("releway", 1, 14));
this.comboBox.setBounds(280, 190, 400, 30);
this.add(this.comboBox);
JLabel label2 = new JLabel("Category:");
label2.setBounds(50, 230, 150, 40);
label2.setForeground(Color.BLACK);
label2.setFont(new Font("Releway", 1, 28));
this.add(label2);
String[] cate = new String[]{"", "GENERAL", "EWS", "SC", "ST"};
this.comboBox2 = new JComboBox(cate);
this.comboBox2.setForeground(Color.black);
this.comboBox2.setFont(new Font("releway", 1, 14));
this.comboBox2.setBounds(280, 240, 400, 30);
this.add(this.comboBox2);
JLabel label3 = new JLabel("Income:");
label3.setBounds(50, 280, 150, 40);
label3.setForeground(Color.BLACK);
label3.setFont(new Font("Releway", 1, 28));
this.add(label3);
String[] inco = new String[]{"", "Below 500000", "Equal to 500000",
"above 500000"};
this.comboBox3 = new JComboBox(inco);
this.comboBox3.setForeground(Color.black);
this.comboBox3.setFont(new Font("releway", 1, 14));
this.comboBox3.setBounds(280, 290, 400, 30);
this.add(this.comboBox3);
JLabel label4 = new JLabel("Education:");
label4.setBounds(50, 320, 150, 40);
label4.setForeground(Color.BLACK);
label4.setFont(new Font("Releway", 1, 28));
this.add(label4);
String[] edu = new String[]{"", "Below Graduate", "Graduate",
"Matriculation", "Other"};
this.comboBox4 = new JComboBox(edu);
this.comboBox4.setForeground(Color.black);
this.comboBox4.setFont(new Font("releway", 1, 14));
this.comboBox4.setBounds(280, 330, 400, 30);
this.add(this.comboBox4);
JLabel label5 = new JLabel("Occupation:");
label5.setBounds(50, 360, 200, 40);
label5.setForeground(Color.BLACK);
label5.setFont(new Font("Releway", 1, 28));
this.add(label5);
String[] occ = new String[]{"", "Business", "Service", "Student",
"Unemployed", "Other"};
this.comboBox5 = new JComboBox(occ);
this.comboBox5.setForeground(Color.black);
this.comboBox5.setFont(new Font("releway", 1, 14));
this.comboBox5.setBounds(280, 370, 400, 30);
this.add(this.comboBox5);
JLabel label6 = new JLabel("Aadhar No:");
label6.setBounds(50, 400, 150, 40);
label6.setForeground(Color.BLACK);
label6.setFont(new Font("Releway", 1, 28));
this.add(label6);
this.textaadh = new JTextField();
this.textaadh.setFont(new Font("Releway", 1, 14));
this.textaadh.setBounds(280, 410, 400, 30);
this.add(this.textaadh);
JLabel label7 = new JLabel("PAN NO:");
label7.setBounds(50, 440, 150, 40);
label7.setForeground(Color.BLACK);
label7.setFont(new Font("Releway", 1, 28));
this.add(label7);
this.textpan = new JTextField();
this.textpan.setFont(new Font("Releway", 1, 14));
this.textpan.setBounds(280, 450, 400, 30);
this.add(this.textpan);
JLabel label8 = new JLabel("Senior citizon:");
label8.setBounds(50, 480, 200, 40);
label8.setForeground(Color.BLACK);
label8.setFont(new Font("Releway", 1, 28));
this.add(label8);
this.r1 = new JRadioButton("Yes");
this.r1.setBackground(new Color(252, 208, 76));
this.r1.setFont(new Font("Raleway", 1, 14));
this.r1.setBounds(280, 490, 50, 30);
this.add(this.r1);
this.r2 = new JRadioButton("No");
this.r2.setBackground(new Color(252, 208, 76));
this.r2.setFont(new Font("Raleway", 1, 14));
this.r2.setBounds(350, 490, 50, 30);
this.add(this.r2);
ButtonGroup buttonGroup1 = new ButtonGroup();
buttonGroup1.add(this.r1);
buttonGroup1.add(this.r2);
JLabel label9 = new JLabel("Exist Account:");
label9.setBounds(50, 520, 200, 40);
label9.setForeground(Color.BLACK);
label9.setFont(new Font("Releway", 1, 28));
this.add(label9);
this.r3 = new JRadioButton("Yes");
this.r3.setBackground(new Color(252, 208, 76));
this.r3.setFont(new Font("Raleway", 1, 14));
this.r3.setBounds(280, 530, 50, 30);
this.add(this.r3);
this.r4 = new JRadioButton("No");
this.r4.setBackground(new Color(252, 208, 76));
this.r4.setFont(new Font("Raleway", 1, 14));
this.r4.setBounds(350, 530, 50, 30);
this.add(this.r4);
ButtonGroup buttonGroup2 = new ButtonGroup();
buttonGroup2.add(this.r3);
buttonGroup2.add(this.r4);
JLabel label10 = new JLabel(formno);
label10.setBounds(630, 20, 200, 40);
label10.setForeground(Color.BLACK);
label10.setFont(new Font("Releway", 1, 28));
this.add(label10);
JLabel label12 = new JLabel("Form no:");
label12.setBounds(500, 20, 150, 40);
label12.setForeground(Color.BLACK);
label12.setFont(new Font("Releway", 1, 28));
this.add(label12);
this.next = new JButton("Next");
this.next.setFont(new Font("releway", 1, 14));
this.next.setBackground(Color.WHITE);
this.next.setForeground(Color.BLACK);
this.next.setBounds(570, 530, 100, 30);
this.next.addActionListener(this);
this.add(this.next);
this.setLayout((LayoutManager)null);
this.setSize(750, 800);
this.setLocation(450, 80);
this.getContentPane().setBackground(new Color(252, 208, 76));
this.setUndecorated(true);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


String rel = (String)this.comboBox.getSelectedItem();
String cate = (String)this.comboBox2.getSelectedItem();
String inc = (String)this.comboBox3.getSelectedItem();
String edu = (String)this.comboBox4.getSelectedItem();
String occ = (String)this.comboBox5.getSelectedItem();
String aad = this.textaadh.getText();
String pan = this.textpan.getText();
String seni = null;
if (this.r1.isSelected()) {
seni = "yes";
} else if (this.r2.isSelected()) {
seni = "No";
}

String exi = null;


if (this.r3.isSelected()) {
exi = "yes";
} else {
if (this.r4.isSelected()) {
exi = "No";
}

try {
if (!this.textpan.getText().equals("") && !
this.textaadh.getText().equals("")) {
connect c = new connect();
String q = "insert into signuptwo values('" + this.formno + "','" +
rel + "','" + cate + "','" + inc + "','" + edu + "','" + occ + "','" + aad + "','" + pan +
"','" + seni + "','" + exi + "')";
c.statement.executeUpdate(q);
new signup3(this.formno);
this.setVisible(false);
} else {
JOptionPane.showMessageDialog((Component)null, "Fill all the
fields");
}
} catch (Exception var13) {
var13.printStackTrace();
}
}

public static void main(String[] args) {


new signup2("");
}
}
SIGNUPTHREE PAGE:
package bank.management.system;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JRadioButton;

public class signup3 extends JFrame implements ActionListener {


JRadioButton r1;
JRadioButton r2;
JRadioButton r3;
JRadioButton r4;
JCheckBox c1;
JCheckBox c2;
JCheckBox c3;
JCheckBox c4;
JCheckBox c5;
JCheckBox c6;
JButton s;
JButton c;
String formno;

signup3(String formno) {
this.formno = formno;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/page1.jpg"));
Image i2 = i1.getImage().getScaledInstance(100, 110, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(25, 20, 100, 100);
this.add(image);
JLabel label1 = new JLabel("Account Details:");
label1.setBounds(280, 70, 400, 40);
label1.setFont(new Font("Releway", 1, 38));
this.add(label1);
JLabel label2 = new JLabel("Account Type:");
label2.setBounds(100, 140, 200, 30);
label2.setFont(new Font("Releway", 1, 18));
this.add(label2);
this.r1 = new JRadioButton("Saving Account");
this.r1.setBackground(new Color(215, 252, 252));
this.r1.setFont(new Font("Raleway", 1, 14));
this.r1.setBounds(100, 180, 150, 30);
this.add(this.r1);
this.r2 = new JRadioButton("Business");
this.r2.setBackground(new Color(215, 252, 252));
this.r2.setFont(new Font("Raleway", 1, 14));
this.r2.setBounds(250, 180, 100, 30);
this.add(this.r2);
this.r3 = new JRadioButton("Current Account");
this.r3.setBackground(new Color(215, 252, 252));
this.r3.setFont(new Font("Raleway", 1, 14));
this.r3.setBounds(350, 180, 150, 30);
this.add(this.r3);
this.r4 = new JRadioButton("Recurring Account");
this.r4.setBackground(new Color(215, 252, 252));
this.r4.setFont(new Font("Raleway", 1, 14));
this.r4.setBounds(500, 180, 200, 30);
this.add(this.r4);
ButtonGroup buttonGroup1 = new ButtonGroup();
buttonGroup1.add(this.r1);
buttonGroup1.add(this.r2);
buttonGroup1.add(this.r3);
buttonGroup1.add(this.r4);
JLabel label3 = new JLabel("Card No:");
label3.setBounds(100, 220, 200, 30);
label3.setFont(new Font("Releway", 1, 18));
this.add(label3);
JLabel label4 = new JLabel("(16 digit card number)");
label4.setBounds(100, 240, 200, 30);
label4.setFont(new Font("Releway", 1, 10));
this.add(label4);
JLabel label5 = new JLabel("xxx-xxx-xxx-4368");
label5.setBounds(330, 220, 250, 30);
label5.setFont(new Font("Releway", 1, 18));
this.add(label5);
JLabel label6 = new JLabel("(It would appear on ATM card/checkbook
and Statement)");
label6.setBounds(300, 240, 300, 30);
label6.setFont(new Font("Releway", 1, 10));
this.add(label6);
JLabel label7 = new JLabel("PIN:");
label7.setBounds(100, 270, 200, 30);
label7.setFont(new Font("Releway", 1, 18));
this.add(label7);
JLabel label8 = new JLabel("XXXX");
label8.setBounds(330, 270, 200, 30);
label8.setFont(new Font("Releway", 1, 18));
this.add(label8);
JLabel label9 = new JLabel("(4-digit Password)");
label9.setBounds(100, 285, 200, 30);
label9.setFont(new Font("Releway", 1, 10));
this.add(label9);
JLabel label10 = new JLabel("Service Required:");
label10.setBounds(100, 310, 200, 30);
label10.setFont(new Font("Releway", 1, 18));
this.add(label10);
this.c1 = new JCheckBox("ATM CARD");
this.c1.setBackground(new Color(215, 252, 252));
this.c1.setFont(new Font("Raleway", 1, 14));
this.c1.setBounds(100, 340, 200, 30);
this.add(this.c1);
this.c2 = new JCheckBox("Internet Banking");
this.c2.setBackground(new Color(215, 252, 252));
this.c2.setFont(new Font("Raleway", 1, 14));
this.c2.setBounds(310, 340, 170, 30);
this.add(this.c2);
this.c3 = new JCheckBox("Mobile Banking");
this.c3.setBackground(new Color(215, 252, 252));
this.c3.setFont(new Font("Raleway", 1, 14));
this.c3.setBounds(100, 390, 200, 30);
this.add(this.c3);
this.c4 = new JCheckBox("Email Alerts");
this.c4.setBackground(new Color(215, 252, 252));
this.c4.setFont(new Font("Raleway", 1, 14));
this.c4.setBounds(310, 390, 160, 30);
this.add(this.c4);
this.c5 = new JCheckBox("Check Book");
this.c5.setBackground(new Color(215, 252, 252));
this.c5.setFont(new Font("Raleway", 1, 14));
this.c5.setBounds(480, 340, 200, 30);
this.add(this.c5);
this.c6 = new JCheckBox("E-Statement");
this.c6.setBackground(new Color(215, 252, 252));
this.c6.setFont(new Font("Raleway", 1, 14));
this.c6.setBounds(480, 390, 200, 30);
this.add(this.c6);
JCheckBox c7 = new JCheckBox("I here declares that the above entered
details correct of my knownlege....... ", true);
c7.setBackground(new Color(215, 252, 252));
c7.setFont(new Font("Raleway", 1, 12));
c7.setBounds(100, 450, 600, 30);
this.add(c7);
JLabel label12 = new JLabel("Form no:-");
label12.setBounds(500, 20, 150, 40);
label12.setForeground(Color.BLACK);
label12.setFont(new Font("Releway", 1, 28));
this.add(label12);
JLabel label11 = new JLabel(formno);
label11.setBounds(630, 20, 200, 40);
label11.setForeground(Color.BLACK);
label11.setFont(new Font("Releway", 1, 28));
this.add(label11);
this.s = new JButton("Cancel");
this.s.setFont(new Font("releway", 1, 14));
this.s.setBackground(Color.BLACK);
this.s.setForeground(Color.WHITE);
this.s.setBounds(400, 530, 150, 30);
this.s.addActionListener(this);
this.add(this.s);
this.c = new JButton("Submit");
this.c.setFont(new Font("releway", 1, 14));
this.c.setBackground(Color.BLACK);
this.c.setForeground(Color.WHITE);
this.c.setBounds(200, 530, 150, 30);
this.c.addActionListener(this);
this.add(this.c);
this.setLayout((LayoutManager)null);
this.getContentPane().setBackground(new Color(215, 252, 252));
this.setSize(850, 800);
this.setLocation(400, 20);
this.setUndecorated(true);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


String sav = null;
if (this.r1.isSelected()) {
sav = "Saving Account ";
} else if (this.r2.isSelected()) {
sav = "Business";
} else if (this.r3.isSelected()) {
sav = "Current Account";
} else if (this.r4.isSelected()) {
sav = "Recurring Account";
}

Random ran = new Random();


long first7 = ran.nextLong() % 900000000L + 1409963000000000L;
String cardno = "" + Math.abs(first7);
long first3 = ran.nextLong() % 9000L + 1000L;
String pin = "" + Math.abs(first3);
String fac = "";
if (this.c1.isSelected()) {
fac = "ATM CARD";
} else if (this.c2.isSelected()) {
fac = "Internet Banking";
} else if (this.c3.isSelected()) {
fac = "Mobile Banking";
} else if (this.c4.isSelected()) {
fac = "Email Alerts";
} else if (this.c5.isSelected()) {
fac = "Check Book";
} else if (this.c6.isSelected()) {
fac = "E-Statement";
}

try {
if (e.getSource() == this.c) {
if (sav.equals("")) {
JOptionPane.showMessageDialog((Component)null, "Fill all the
fields");
} else {
connect c1 = new connect();
String q1 = "insert into signupthree values('" + this.formno + "','" +
sav + "','" + cardno + "','" + pin + "','" + fac + "')";
String q2 = "insert into login values('" + this.formno + "','" +
cardno + "','" + pin + "')";
c1.statement.executeUpdate(q1);
c1.statement.executeUpdate(q2);
JOptionPane.showMessageDialog((Component)null, "card
Number:" + cardno + "\nPIN NO:" + pin);
new Deposite(pin);
this.setVisible(false);
}
} else if (e.getSource() == this.s) {
System.exit(0);
}
} catch (Exception var14) {
var14.printStackTrace();
}

public static void main(String[] args) {


new signup3("");
}
}

MAIN-CLASS PAGE:

package bank.management.system;
import java.awt.Color;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class main_class extends JFrame implements ActionListener {


JButton b1;
JButton b2;
JButton b3;
JButton b4;
JButton b5;
JButton b6;
JButton b7;
String pin;

main_class(String pin) {
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/atm2.png"));
Image i2 = i1.getImage().getScaledInstance(1550, 830, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 1550, 830);
this.add(l3);
JLabel label = new JLabel("Please Select Your Transaction");
label.setBounds(430, 180, 700, 35);
label.setForeground(Color.WHITE);
label.setFont(new Font("System", 1, 28));
l3.add(label);
this.b1 = new JButton("DEPOSIT");
this.b1.setForeground(Color.WHITE);
this.b1.setBackground(new Color(65, 125, 128));
this.b1.setBounds(410, 274, 150, 35);
this.b1.addActionListener(this);
l3.add(this.b1);
this.b2 = new JButton("CASH WITHDRAWL");
this.b2.setForeground(Color.WHITE);
this.b2.setBackground(new Color(65, 125, 128));
this.b2.setBounds(700, 274, 150, 35);
this.b2.addActionListener(this);
l3.add(this.b2);
this.b3 = new JButton("FAST CASH");
this.b3.setForeground(Color.WHITE);
this.b3.setBackground(new Color(65, 125, 128));
this.b3.setBounds(410, 318, 150, 35);
this.b3.addActionListener(this);
l3.add(this.b3);
this.b4 = new JButton("MINI STATEMENT");
this.b4.setForeground(Color.WHITE);
this.b4.setBackground(new Color(65, 125, 128));
this.b4.setBounds(700, 318, 150, 35);
this.b4.addActionListener(this);
l3.add(this.b4);
this.b5 = new JButton("PIN CHANGE");
this.b5.setForeground(Color.WHITE);
this.b5.setBackground(new Color(65, 125, 128));
this.b5.setBounds(410, 362, 150, 35);
this.b5.addActionListener(this);
l3.add(this.b5);
this.b6 = new JButton("BALANCE ENQUIRY");
this.b6.setForeground(Color.WHITE);
this.b6.setBackground(new Color(65, 125, 128));
this.b6.setBounds(700, 362, 150, 35);
this.b6.addActionListener(this);
l3.add(this.b6);
this.b7 = new JButton("EXIT");
this.b7.setForeground(Color.WHITE);
this.b7.setBackground(new Color(65, 125, 128));
this.b7.setBounds(700, 406, 150, 35);
this.b7.addActionListener(this);
l3.add(this.b7);
this.setLayout((LayoutManager)null);
this.setSize(1500, 1040);
this.setLocation(0, 0);
this.setUndecorated(true);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == this.b1) {
new Deposite(this.pin);
this.setVisible(false);
} else if (e.getSource() == this.b7) {
System.exit(0);
} else if (e.getSource() == this.b2) {
new wiithdral(this.pin);
this.setVisible(false);
} else if (e.getSource() == this.b6) {
new BalanceEquriy(this.pin);
this.setVisible(false);
} else if (e.getSource() == this.b3) {
new FastCash(this.pin);
this.setVisible(false);
} else if (e.getSource() == this.b5) {
new Pin(this.pin);
this.setVisible(false);
} else if (e.getSource() == this.b4) {
new mini(this.pin);
}

public static void main(String[] args) {


new main_class("pin");
}
}
DEPOSITE CLASS CODING:
package bank.management.system;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
public class Deposite extends JFrame implements ActionListener {
JButton button1;
JButton button2;
JTextField textField;
String pin;

Deposite(String pin) {
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/atmp.jpg"));
Image i2 = i1.getImage().getScaledInstance(1500, 800, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(0, 0, 1500, 800);
this.add(image);
JLabel label1 = new JLabel("Enter Amount You Want TO Deposit");
label1.setFont(new Font("Releway", 1, 38));
label1.setForeground(Color.WHITE);
label1.setBounds(300, 20, 700, 35);
image.add(label1);
this.textField = new JTextField();
this.textField.setFont(new Font("Releway", 1, 14));
this.textField.setBounds(450, 80, 400, 30);
image.add(this.textField);
this.button1 = new JButton("Deposit");
this.button1.setFont(new Font("Arial", 1, 14));
this.button1.setForeground(Color.black);
this.button1.setBounds(650, 200, 100, 30);
this.button1.addActionListener(this);
image.add(this.button1);
this.button2 = new JButton("Back");
this.button2.setFont(new Font("Arial", 1, 14));
this.button2.setForeground(Color.black);
this.button2.setBounds(500, 200, 100, 30);
this.button2.addActionListener(this);
image.add(this.button2);
this.setLayout((LayoutManager)null);
this.setSize(1550, 1080);
this.setLocation(0, 0);
this.setUndecorated(true);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


try {
String amount = this.textField.getText();
Date date = new Date();
if (e.getSource() == this.button1) {
if (this.textField.getText().equals("")) {
JOptionPane.showMessageDialog((Component)null, "please enter
Amount");
} else {
connect c = new connect();
c.statement.executeUpdate("insert into bank values ('" + this.pin
+ "','" + date + "','Deposit','" + amount + "')");
JOptionPane.showMessageDialog((Component)null, "Rs." +
amount + "Deposited sucessfully");
this.setVisible(false);
new main_class(this.pin);
}
} else if (e.getSource() == this.button2) {
this.setVisible(false);
new main_class(this.pin);
}
} catch (Exception var5) {
var5.printStackTrace();
}

public static void main(String[] args) {


new Deposite("pin");
}
}
WITHDRAL CODING:
package bank.management.system;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.util.Date;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;

public class wiithdral extends JFrame implements ActionListener {


JTextField textField;
JButton button1;
JButton button2;
String pin;

wiithdral(String pin) {
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/atmp.jpg"));
Image i2 = i1.getImage().getScaledInstance(1500, 800, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(0, 0, 1500, 800);
this.add(image);
JLabel label1 = new JLabel("Enter Amount You Want TO Withdraw");
label1.setFont(new Font("Releway", 1, 38));
label1.setForeground(Color.WHITE);
label1.setBounds(300, 20, 700, 35);
image.add(label1);
this.textField = new JTextField();
this.textField.setFont(new Font("Releway", 1, 14));
this.textField.setBounds(450, 80, 400, 30);
image.add(this.textField);
this.button1 = new JButton("withdraw");
this.button1.setFont(new Font("Arial", 1, 14));
this.button1.setForeground(Color.black);
this.button1.setBounds(650, 200, 100, 30);
this.button1.addActionListener(this);
image.add(this.button1);
this.button2 = new JButton("Back");
this.button2.setFont(new Font("Arial", 1, 14));
this.button2.setForeground(Color.black);
this.button2.setBounds(500, 200, 100, 30);
this.button2.addActionListener(this);
image.add(this.button2);
this.setLayout((LayoutManager)null);
this.setSize(1550, 1080);
this.setLocation(0, 0);
this.setUndecorated(true);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == this.button1) {
try {
String amount = this.textField.getText();
Date date = new Date();
if (this.textField.getText().equals("")) {
JOptionPane.showMessageDialog((Component)null, "please enter
amount");
} else {
connect c = new connect();
ResultSet resultSet = c.statement.executeQuery("select * from
bank where pin='" + this.pin + "'");
int balace = 0;

while(resultSet.next()) {
if (resultSet.getString("Deposit_type").equals("Deposit")) {
balace += Integer.parseInt(resultSet.getString("amount"));
} else {
balace -= Integer.parseInt(resultSet.getString("amount"));
}
}

if (balace < Integer.parseInt(amount)) {


JOptionPane.showMessageDialog((Component)null, "insufficent
Balace");
return;
}

c.statement.executeUpdate("insert into bank values ('" + this.pin


+ "','" + date + "','withdral','" + amount + "')");
JOptionPane.showMessageDialog((Component)null, "Rs." +
amount + "Debited successfully");
this.setVisible(false);
new main_class(this.pin);
}
} catch (Exception var7) {
}
} else if (e.getSource() == this.button2) {
this.setVisible(false);
new main_class(this.pin);
}

public static void main(String[] args) {


new wiithdral("");
}
}

PIN-CHANGE CODING:
package bank.management.system;
import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;

public class Pin extends JFrame implements ActionListener {


JButton b1;
JButton b2;
JPasswordField p1;
JPasswordField p2;
String pin;

Pin(String pin) {
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/atm2.png"));
Image i2 = i1.getImage().getScaledInstance(1550, 830, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 1550, 830);
this.add(l3);
JLabel label1 = new JLabel("CHANGE YOUR PIN");
label1.setForeground(Color.WHITE);
label1.setFont(new Font("System", 1, 16));
label1.setBounds(430, 180, 400, 35);
l3.add(label1);
JLabel label2 = new JLabel("New PIN: ");
label2.setForeground(Color.WHITE);
label2.setFont(new Font("System", 1, 16));
label2.setBounds(430, 220, 150, 35);
l3.add(label2);
this.p1 = new JPasswordField();
this.p1.setBackground(new Color(65, 125, 128));
this.p1.setForeground(Color.WHITE);
this.p1.setBounds(600, 220, 180, 25);
this.p1.setFont(new Font("Raleway", 1, 22));
l3.add(this.p1);
JLabel label3 = new JLabel("Re-Enter New PIN: ");
label3.setForeground(Color.WHITE);
label3.setFont(new Font("System", 1, 16));
label3.setBounds(430, 250, 400, 35);
l3.add(label3);
this.p2 = new JPasswordField();
this.p2.setBackground(new Color(65, 125, 128));
this.p2.setForeground(Color.WHITE);
this.p2.setBounds(600, 255, 180, 25);
this.p2.setFont(new Font("Raleway", 1, 22));
l3.add(this.p2);
this.b1 = new JButton("CHANGE");
this.b1.setBounds(700, 362, 150, 35);
this.b1.setBackground(new Color(65, 125, 128));
this.b1.setForeground(Color.WHITE);
this.b1.addActionListener(this);
l3.add(this.b1);
this.b2 = new JButton("BACK");
this.b2.setBounds(700, 406, 150, 35);
this.b2.setBackground(new Color(65, 125, 128));
this.b2.setForeground(Color.WHITE);
this.b2.addActionListener(this);
l3.add(this.b2);
this.setSize(1550, 1080);
this.setLayout((LayoutManager)null);
this.setLocation(0, 0);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


try {
String pin1 = this.p1.getText();
String pin2 = this.p2.getText();
if (!pin1.equals(pin2)) {
JOptionPane.showMessageDialog((Component)null, "Entered PIN
does not match");
return;
}

if (e.getSource() == this.b1) {
if (this.p1.getText().equals("")) {
JOptionPane.showMessageDialog((Component)null, "Enter New
PIN");
return;
}

if (this.p2.getText().equals("")) {
JOptionPane.showMessageDialog((Component)null, "Re-Enter
New PIN");
return;
}

connect c = new connect();


String q1 = "update bank set pin = '" + pin1 + "' where pin = '" +
this.pin + "'";
String q2 = "update login set pin = '" + pin1 + "' where pin = '" +
this.pin + "'";
String q3 = "update signupthree set pin = '" + pin1 + "' where pin = '"
+ this.pin + "'";
c.statement.executeUpdate(q1);
c.statement.executeUpdate(q2);
c.statement.executeUpdate(q3);
JOptionPane.showMessageDialog((Component)null, "PIN changed
successfully");
this.setVisible(false);
new main_class(this.pin);
} else if (e.getSource() == this.b2) {
new main_class(this.pin);
this.setUndecorated(true);
this.setVisible(false);
}
} catch (Exception var8) {
var8.printStackTrace();
}

public static void main(String[] args) {


new Pin("");
}
}
MINISTATEMENT CODING:
package bank.management.system;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;

public class Pin extends JFrame implements ActionListener {


JButton b1;
JButton b2;
JPasswordField p1;
JPasswordField p2;
String pin;

Pin(String pin) {
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/atm2.png"));
Image i2 = i1.getImage().getScaledInstance(1550, 830, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 1550, 830);
this.add(l3);
JLabel label1 = new JLabel("CHANGE YOUR PIN");
label1.setForeground(Color.WHITE);
label1.setFont(new Font("System", 1, 16));
label1.setBounds(430, 180, 400, 35);
l3.add(label1);
JLabel label2 = new JLabel("New PIN: ");
label2.setForeground(Color.WHITE);
label2.setFont(new Font("System", 1, 16));
label2.setBounds(430, 220, 150, 35);
l3.add(label2);
this.p1 = new JPasswordField();
this.p1.setBackground(new Color(65, 125, 128));
this.p1.setForeground(Color.WHITE);
this.p1.setBounds(600, 220, 180, 25);
this.p1.setFont(new Font("Raleway", 1, 22));
l3.add(this.p1);
JLabel label3 = new JLabel("Re-Enter New PIN: ");
label3.setForeground(Color.WHITE);
label3.setFont(new Font("System", 1, 16));
label3.setBounds(430, 250, 400, 35);
l3.add(label3);
this.p2 = new JPasswordField();
this.p2.setBackground(new Color(65, 125, 128));
this.p2.setForeground(Color.WHITE);
this.p2.setBounds(600, 255, 180, 25);
this.p2.setFont(new Font("Raleway", 1, 22));
l3.add(this.p2);
this.b1 = new JButton("CHANGE");
this.b1.setBounds(700, 362, 150, 35);
this.b1.setBackground(new Color(65, 125, 128));
this.b1.setForeground(Color.WHITE);
this.b1.addActionListener(this);
l3.add(this.b1);
this.b2 = new JButton("BACK");
this.b2.setBounds(700, 406, 150, 35);
this.b2.setBackground(new Color(65, 125, 128));
this.b2.setForeground(Color.WHITE);
this.b2.addActionListener(this);
l3.add(this.b2);
this.setSize(1550, 1080);
this.setLayout((LayoutManager)null);
this.setLocation(0, 0);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


try {
String pin1 = this.p1.getText();
String pin2 = this.p2.getText();
if (!pin1.equals(pin2)) {
JOptionPane.showMessageDialog((Component)null, "Entered PIN
does not match");
return;
}

if (e.getSource() == this.b1) {
if (this.p1.getText().equals("")) {
JOptionPane.showMessageDialog((Component)null, "Enter New
PIN");
return;
}

if (this.p2.getText().equals("")) {
JOptionPane.showMessageDialog((Component)null, "Re-Enter
New PIN");
return;
}

connect c = new connect();


String q1 = "update bank set pin = '" + pin1 + "' where pin = '" +
this.pin + "'";
String q2 = "update login set pin = '" + pin1 + "' where pin = '" +
this.pin + "'";
String q3 = "update signupthree set pin = '" + pin1 + "' where pin = '"
+ this.pin + "'";
c.statement.executeUpdate(q1);
c.statement.executeUpdate(q2);
c.statement.executeUpdate(q3);
JOptionPane.showMessageDialog((Component)null, "PIN changed
successfully");
this.setVisible(false);
new main_class(this.pin);
} else if (e.getSource() == this.b2) {
new main_class(this.pin);
this.setUndecorated(true);
this.setVisible(false);
}
} catch (Exception var8) {
var8.printStackTrace();
}

public static void main(String[] args) {


new Pin("");
}
}
FAST CASH CODING:
package bank.management.system;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Image;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.util.Date;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;

public class FastCash extends JFrame implements ActionListener {


JButton b1;
JButton b2;
JButton b3;
JButton b4;
JButton b5;
JButton b6;
JButton b7;
String pin;

FastCash(String pin) {
this.pin = pin;
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/atm2.png"));
Image i2 = i1.getImage().getScaledInstance(1550, 830, 1);
ImageIcon i3 = new ImageIcon(i2);
JLabel l3 = new JLabel(i3);
l3.setBounds(0, 0, 1550, 830);
this.add(l3);
JLabel label = new JLabel("SELECT WITHDRAWAL AMOUNT");
label.setBounds(445, 180, 700, 35);
label.setForeground(Color.WHITE);
label.setFont(new Font("System", 1, 23));
l3.add(label);
this.b1 = new JButton("Rs. 100");
this.b1.setForeground(Color.WHITE);
this.b1.setBackground(new Color(65, 125, 128));
this.b1.setBounds(410, 274, 150, 35);
this.b1.addActionListener(this);
l3.add(this.b1);
this.b2 = new JButton("Rs. 500");
this.b2.setForeground(Color.WHITE);
this.b2.setBackground(new Color(65, 125, 128));
this.b2.setBounds(700, 274, 150, 35);
this.b2.addActionListener(this);
l3.add(this.b2);
this.b3 = new JButton("Rs. 1000");
this.b3.setForeground(Color.WHITE);
this.b3.setBackground(new Color(65, 125, 128));
this.b3.setBounds(410, 318, 150, 35);
this.b3.addActionListener(this);
l3.add(this.b3);
this.b4 = new JButton("Rs. 2000");
this.b4.setForeground(Color.WHITE);
this.b4.setBackground(new Color(65, 125, 128));
this.b4.setBounds(700, 318, 150, 35);
this.b4.addActionListener(this);
l3.add(this.b4);
this.b5 = new JButton("Rs. 5000");
this.b5.setForeground(Color.WHITE);
this.b5.setBackground(new Color(65, 125, 128));
this.b5.setBounds(410, 362, 150, 35);
this.b5.addActionListener(this);
l3.add(this.b5);
this.b6 = new JButton("Rs. 10000");
this.b6.setForeground(Color.WHITE);
this.b6.setBackground(new Color(65, 125, 128));
this.b6.setBounds(700, 362, 150, 35);
this.b6.addActionListener(this);
l3.add(this.b6);
this.b7 = new JButton("BACK");
this.b7.setForeground(Color.WHITE);
this.b7.setBackground(new Color(65, 125, 128));
this.b7.setBounds(700, 406, 150, 35);
this.b7.addActionListener(this);
l3.add(this.b7);
this.setLayout((LayoutManager)null);
this.setSize(1550, 1040);
this.setLocation(0, 0);
this.setUndecorated(true);
this.setVisible(true);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == this.b7) {
this.setVisible(false);
new main_class(this.pin);
} else {
String amount = ((JButton)e.getSource()).getText().substring(4);
connect c = new connect();
Date date = new Date();

try {
ResultSet resultSet = c.statement.executeQuery("select * from bank
where pin= '" + this.pin + "'");
int balance = 0;

while(resultSet.next()) {
if (resultSet.getString("Deposit_type").equals("Deposit")) {
balance += Integer.parseInt(resultSet.getString("amount"));
} else {
balance -= Integer.parseInt(resultSet.getString("amount"));
}
}

if (e.getSource() != this.b7 && balance < Integer.parseInt(amount)) {


JOptionPane.showMessageDialog((Component)null, "Insufficient
Balance");
return;
}

c.statement.executeUpdate("insert into bank values('" + this.pin +


"','" + date + "', 'withdrawl', '" + amount + "')");
JOptionPane.showMessageDialog((Component)null, "Rs. " + amount
+ " Debited Successfully");
} catch (Exception var7) {
var7.printStackTrace();
}

this.setVisible(false);
new main_class(this.pin);
}

public static void main(String[] args) {


new FastCash("");
}
}

BALAN CE INQUERY CODING:


package bank.management.system;

import java.awt.Color;

import java.awt.Font;

import java.awt.Image;

import java.awt.LayoutManager;
import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.sql.ResultSet;

import javax.swing.ImageIcon;

import javax.swing.JButton;

import javax.swing.JFrame;

import javax.swing.JLabel;

public class BalanceEquriy extends JFrame implements ActionListener {

String pin;

JLabel label1;

JLabel label2;

JButton button1;

JButton button2;

BalanceEquriy(String pin) {

this.pin = pin;

ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("icon/atmp.jpg"));

Image i2 = i1.getImage().getScaledInstance(1500, 800, 1);

ImageIcon i3 = new ImageIcon(i2);

JLabel image = new JLabel(i3);

image.setBounds(0, 0, 1500, 800);

this.add(image);

this.label1 = new JLabel("Your currect Balance is");

this.label1.setFont(new Font("Releway", 1, 38));

this.label1.setForeground(Color.WHITE);

this.label1.setBounds(300, 20, 700, 35);

image.add(this.label1);

this.label2 = new JLabel();

this.label2.setFont(new Font("System", 1, 38));

this.label2.setForeground(Color.WHITE);
this.label2.setBounds(300, 50, 700, 35);

image.add(this.label2);

this.button2 = new JButton("Back");

this.button2.setFont(new Font("Arial", 1, 14));

this.button2.setForeground(Color.black);

this.button2.setBounds(500, 200, 100, 30);

this.button2.addActionListener(this);

image.add(this.button2);

int balace = 0;

try {

connect c = new connect();

ResultSet resultSet = c.statement.executeQuery("select *from bank where pin='" + pin +


"'");

while(resultSet.next()) {

if (resultSet.getString("Deposit_type").equals("Deposit")) {

balace += Integer.parseInt(resultSet.getString("Amount"));

} else {

balace -= Integer.parseInt(resultSet.getString("Amount"));

} catch (Exception var9) {

var9.printStackTrace();

this.label2.setText("" + balace);

this.setLayout((LayoutManager)null);

this.setSize(1550, 1080);

this.setLocation(0, 0);

this.setUndecorated(true);
this.setVisible(true);

public void actionPerformed(ActionEvent e) {

this.setVisible(false);

new main_class(this.pin);

public static void main(String[] args) {

new BalanceEquriy("");

DA TABASE CONNECT CODING:


package bank.management.system;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class connect {


Connection connection;
Statement statement;
public connect() {
try {
this.connection =
DriverManager.getConnection("jdbc:mysql://loc
alhost:3306/bank", "root", "papu@470");
this.statement =
this.connection.createStatement();
} catch (Exception var2) {
var2.printStackTrace();
}

}
}
ADVANTAGES OF SYSTEM

• Proposed system enables Bank to find out the particular


Account.

• This system also helps us to know about the deposit and


withdrawal amount for a particular person.

• This system have features to search customer record in two


ways one is account number and second is by customer
name and also features to update and delete account.

• In this system we store employee record, search, modify,


delete etc.

• Reduction of errors and viruses without the requirement of


the internet.

• This system has features to see the account detail according


to date.

• Updating data is easy in computerized system.

LIMITATIONS OF THE PROJECT


• WE HAVE A LIMITATION IN THIS SYSTEM
I.E. THIS SYSTEM IS NOT LINKED TO ANY
NETWORK.

FUTURE SCOPE

In the future more software companies will hire this


software program because now a days the need for
the speed in the day-to-day life has become
essential. As competition increases, companies are
considering old versions, they develop more
efficient versions for individual success.

In future we can link this project to a network. We


can also convert this project in Hibernate. Hibernate
is a framework. It storage large amount of databases.

In future we can also add the facility to change the


password and recover the forgotten password.

You might also like