You are on page 1of 83

DECLARATION

I Nitin Goel(190855106144) hereby declare that the project report title“BANKING MANAGEMENT
SYSTEM” is an original work carried out by me under the supervision of Ms. Neetu Singh Further
declare that this work has not been submitted to any other
Institute/University for the award of the degree of Bachelor of Technology

STUDENT

Nitin Goel(190855106144)

1
Forwarding Letter

This is to certify that the project entitled “Banking Management System” which is being
submitted for the partial fulfillment for the award of Bachelor Degree of Computer Application
from Ch. Charan Singh University, Meerut is an authentic work carried out by Nitin
Goel(190855106144)

under the guidance of Project Guide Ms.Neetu Singh

The matter embodied in this project work has not been submitted earlier for the award of degree
or diploma.

We wish him/her all the best for the future.

Internal Guide Head of Department(HOD)

Ms. Neetu Singh Mr. Nishant Rathi

ACKNOWLEDGEMENT

This project report on “Banking Management System” is the result of idea and suggestions to me
by Mr. Nishant Rathi

2
We have received unfailing encouragement and inspiration of Mr. Nishant Tyagi whose
exceptional knowledge and unparalleled behavior is full of ardent inspiration in it. However, we
can never adequate thank all those who have their assistance, guidance, cooperation criticism
contributed to the improvement of this report. We are ebullient in expressing my intense in
debtless heartiest gratitude to all of them.

Since performance feedback is essential for effective communication, mistakes and creative
feedback of the report may be unhesitatingly communicated to me, who will be as far as possible
duly acknowledged and most welcome.

In this report, whatever is beneficial comes from almighty, and whatever is faulty is mine.

PREFACE
“Learning comes from doing.” To learn something, one must go through Practical condition.
Recognizing this fact, the University has made it essential for Bachelor of Computer
Applications (BCA) students to undergo Industrial Training for 10 weeks. During this period, the
student learns about the functioning of the organization and the actual business environment.
Also, this training helps the student how to implement the theoretical knowledge into practical
life, in our day to day life. This project report was prepared during the training period.
During this period, an effort was made to understand BANKING MANAGEMENT SYSTEM and to
finish the project work assigned to us. This report lays special emphasis on the operational work,
task and projects carried out during the training period.

3
CONTENTS

Contents……………………………………………………………………………….6

Ch.1.Introduction………………………...…………………………………………...7

1.1 Scope of The System…....................................................................................8


1.2 Project
Description……………………………………………………………….…….....9
1.2.1. About
existing………………………………………………………………….…….10
1.2.2. Implementation of project ………………………………………….……….11
1.3. Advantages of Project………………………………................................................12

Ch.2.Project category Tools &Environment

2.1 Project Category…………………………………………………….……....13

2.2 Front end Coverage………………………………………………….……...14

2.3 Back end Coverage………………………………………………….….…...15

2.4 Software and Hardware Requirements…………………………….….…….16


Ch.3.Project Development stages

3.1. Recognition of needs…………………………………………..…………...18

3.2 Feasibility Study…………………………………………….….…………..19

3.3. System Analysis (DFD’s E-R Diagram)……………...................................24

3.4. System Development……………………………………….….….………..28

3.5. Testing, Implementation & aintenance………………….………..….….....29


Ch.4.Project form

4.1. Database Design………………….………………………………………….41

4. 2.Forms………………………………………………………………………...48

4.3. Coding……………………………………………………..….…….……….62

Ch.5.Conclusion ..………………………………………………………….………..120

4
Ch.6.Future Enhancement ..……………………………………………..................122
Bibliography……………………………………………………………………........123

INTRODUCTION

Banking Management System is a tool that It provides efficient services to its Account
and Customer. The various types of operations and dealings take places in the Bank. But
we had undertaken the work of Computerization of Generation of Account Management
System which covers the activities related to Account and Customer etc. & All Types of
activities corresponds to the Member, these operations was manually operated by the
clerks and Operator and the operations were really time consuming task to perform. The
present system will help them a lot.

MAIN OBJECTIVE OF THIS PROJECT:

1. To provide security as only an authorized employee can interact with the system.
2. To help the customer working easily and efficiently.
3. To help the customer in reducing errors that are encountered frequently during manual
operations by concurrently updating the data stored in many places.
4. To reduce the workload on the staff by providing automatic calculation.
5. To help the customer or manager in tracing the transaction quickly.
6. To help the customer in generating various reports at various nick of time as per their
requirements e.g. daily, weekly, monthly or annually.
7. To reduce the manpower.
8. To maintain the data with complete consistency and minimum redundancy.

5
1.1 SCOPE OF THE SYSTEM

The scope of this document includes an overview of the BANKING MANAGEMENT


SYSTEM project, detailed information about the requirements, including functional
requirements, interface requirements, nonfunctional requirements and additional
constraints of the system.
1. There are three basic users – customer, employee, Admin.
2. All users have their own profile in this project.
3. Customer can search for open new account. They also can take loan from the bank

4. Bank can give loan and can view account’s record.


5. Admin views and manages the customer and employee.

6
1.2 PROJECT DESCRIPTION

Today computer has become the backbone of nearly every occupation. In every industry
or company or any institution, the several employees have to maintain a number of
records in various part of the organization. In a market, there is a need to maintain record
about employees, edibles, assets & many more.

To do this work manually requires a lot of manpower and consumes too much time.
Moreover one is never sure about the efficiency & accuracy of work being done and
records being maintained. A bad part of this style of working is that, if a person
concerned for a particular job, say maintaining supplier record, is on leave, some of the
process gets standstill, which depends on the records kept by that employee. That is,
where automation comes in to help and allows simple, smooth and most efficient, secure
and easy to handle functionality.

This system will reduce the workload of the employee and time of processing of data
from one unit to another. It also will help the staff/manager in tracing the daily
transaction & maintain staff record, asset information to reduce the manpower. It also
provides the facility to prevent the unauthorized data access of other persons by
categorized the user as normal user and administrator. Only administrator can delete &
even modify the records.

This system will prove to be master key to manage of a bank. Now days all the
organizations are converting from manual to computerized transactions. This provides
better services to the employees with less effort thus increasing the demand of this type of
system day by day.

This has brought about marvelous changes in the life of human being and has made our life easy
& comfortable. It has revolutionized the whole era.

This project “BANKING MANAGEMENT SYSTEM” will help the customer & stands at their
account in every sphere of their activities regarding a taking loan. It will be always their
back & call.

7
1.2.1ABOUT EXISTING SYSTEM

In the general account of the customers, there are many of problems are faced . Some of
these problems can be managed easily, but some of them have many challenging work
when employee can faced that.

Some of these challenges in the general bank can be figure-out as:-

• Difficulty with the record keeping.


• Managing of all records.
• Difficulty to creation of many other recording files for records.

• All record can’t be placed in single way nature.

All of these type’s challenges can be easily generate in a general and manually operated costumer
record..

1.2.2 IMPLEMENTATION OF PROJECT


A crucial phase in the system life cycle is the successful implementation of the new
system design. Implementation includes all those activities that take place to convert from
the old system to tee new one. The new system may be completely new, replacing an
existing system. In either case, proper implementation becomes necessary so that a
reliable system based on the requirements of the organization can be provided. Successful
implementation may not guarantee improvement in the organization using the new system
, but improper installation will prevent it. It has been observed that even the best system
can’t show good result if the analysts managing the implementation do not attend to
every important details. This is an area where the systems analysts need to work with
utmost care. This system will be implemented using java netbeans as front end and MS-
Access as back end windows 98 a the platform.

For the successful implementation of a system, the training of the users of the system
plays an important role. Because even well designed system can succeed or fail because

8
of the way they are operated and used. Therefore, the quality of the training received by
the personnel involved with the system in various capacities helps or hinders and may
even prevent the successful implementation of management information system. Those
who are directly or indirectly related with the system development work must know in
detail what their roles will be , how they can ace efficient use of the system and what the
system will or will not do for them. Therefore both system operators and users need
training.

1.3 ADVANTAGE OF PROJECT

SPEED:
They understand the importance of timing, of getting there before the competition. A rich
portfolio of reusable, modular frameworks helps jump-start projects. Tried and tested
methodology ensures that we follow a predictable, low - risk path to achieve results. Our
track record is testimony to complex projects delivered within and evens before schedule.

EXPERTISE:
Our teams combine cutting edge technology skills with rich domain expertise. What’s
equally important - they share a strong customer orientation that means they actually start
by listening to the customer. They’re focused on coming up with solutions that serve
customer requirements today and anticipate future needs.

A FULL SERVICE PORTFOLIO:


They offer customers the advantage of being able to Architect, integrate and manage
technology services. This means that they can rely on one, fully accountable source
instead of trying to integrate disparate multi vendor solutions.

SERVICES:
It Asset Manager is providing it’s services to companies which are in the field of
production, quality control etc With their rich expertise and experience and information
technology they are in best position to provide software solutions to distinct business
requirements.

9
Ch 2 PROJECT CATEGORY & ENVIRONEMENT

2.1 Project Category & Development

Today computer has become the backbone of nearly every occupation. In every industry
or company or any institution, the several employees have to maintain a number of
records in various part of the organization. In a market, there is a need to maintain record
about employees, edibles, assets & many more.

To do this work manually requires a lot of manpower and consumes too much time.
Moreover one is never sure about the efficiency & accuracy of work being done and
records being maintained. A bad part of this style of working is that, if a person
concerned for a particular job, say maintaining customer record, is on leave, some of the
process gets standstill, which depends on the records kept by that employee. That is,
where automation comes in to help and allows simple, smooth and most efficient, secure
and easy to handle functionality.

This system will reduce the workload of the employee and time of processing of data
from one unit to another.It also provides the facility to prevent the unauthorized data
access of other persons by categorized the user as normal user and administrator. Only
administrator can delete & even modify the records.

FRONT END

JAVA used as FRONT END

Java uses front end programming because JAVA use back end as like
ACCESS DATABASE.

BACK END

Back end

10
Microsoft Access-2007

2.4 Software and Hardware Requirements

Hardware Requirements: z

Processor : Pentium 4 or above


Memory : 512MB RAM or above
Hard disk : 20MB
Keyboard : 104 keys Microsoft
Access : 2016

Software Requirements:

Operating System : Windows XP/2003 or Linux/Solaris


Programming Language : Java
Database Applications : Ucanaccess
Database : MS-Access Netbeans :
12.5

11
3.1 ROCOGNITION OF NEEDS

We all know the importance of computerization. The world is moving ahead at lightning
speed and everyone is running short of time. One always wants to get the information and
perform a task he/she/they desire(s) within a short period of time and too with amount of
efficiency and accuracy. The application areas for the computerization have been selected
on the basis of following factors:

1 Minimizing the manual records kept at different locations.


2 There will be more data integrity.
3 Facilitating desired information display, very quickly, by retrieving information from users.
4 Facilitating various statistical information which helps in decision-making?
5 To reduce manual efforts in activities that involved repetitive work.
6 Updating and deletion of such a huge amount of data will become easier.

3.2 FEASIBILITY STUDY

SYSTEM ANALYSIS

12
Systems analysis refers to the process of examining a business situation with the intent of
improving it through better procedure and methods. Systems development can generally
be thought of as having two major components Systems Analysis and Systems Design.

Systems analysis is the process of gathering and interpreting facts, diagnosis problems
and using the information to recommend improvement to the system. In brief, we can say
that analysis specifies what the system should do.

System analysis is conducted with the following objectives in mind:

1. Identify the Student and Staff members need

2. Evaluate the system concept for feasibility

3. Perform economic and technical analysis

4. Allocate function to hardware, software, people, database and other system elements

5. Establish cost and schedule constraints

6. Create a system definition that forms the foundation for all subsequent engineering

FEASIBILITY STUDY

The concept of feasibility is to determine whether or not a project is worth doing.

The process followed in making this determination is called feasibility study.


Once it has been determined that a project is feasible, the system analyst can go ahead and
prepare the project specification which finalizes project requirements.

Types of feasibility

1. Technical Feasibility
2. Operational Feasibility
3. Economic Feasibility
4. Social feasibility

13
5. Management Feasibility
6. Legal Feasibility
7. Time Feasibility

Here we describe only few of these in detail:-

TECHNICAL FEASIBILITY

This is concerned with specifying equipment and software that will successfully satisfy the user
requirement. Technical needs of the system include:-

Facility to produce output in a given time

Response time under certain conditions

Ability to process a certain volume of transactions at a particular period

Facility to communicate data to distant location

In examining technical feasibility, configuration of the system is given more importance


than the actual make of hardware .Configuration should give the complete picture about
the system’s requirements: how many workstations are required , how these units are
interconnected so that they could operate and communicate smoothly. What speeds of
input and output should be achieved at particular quality of printing.

The computers are easily available in almost all the places, even in villages. The hardware needed
to carry out this project with 64 MB of RAM and 2 GB HDD.

The software needed to carry out this project include Visual Basic 6.0 as front end and
oracle 8 as back end .So the technology required to carry out the project is easily
available and affordable, hence this project is technically feasible.

14
Due to all these reasons implementation of such system becomes not only feasible but reputed to
the organization..

OPERATIONAL FEASIBILITY

This is mainly related to human organization and political aspects. The points to be considered
are:-

What changes will be brought with the system?

What organizational structures are disturbed?


What new skills will be required? Do the existing staff members have these skills?
If not, they be trained in due course of time.

This feasibility study is carried out by a small group of people who are familiar with the
information system techniques who understand the parts of business that are relevant to
the project and are skilled in the system analysis and design process. This project is not
developed just for fun. They are developed on demand of the organization for which the
system is being developed. Therefore the chances of resistance from the company Staff is
almost nil. Any disturbance to the organization if occurs will be advantageous to the
organization. Also the time required to carry out a transaction will be required to a large
extent, which will make the students and others happy and cheerful. The operators now
will be able to service more students and staff members than before in same time period.
There is no need to recruit new staff to corporate the system .The existing staff of the
company can be trained to interact with the system, which is a GUI, based software and is
easy to use. Hence the project is Operationally feasible.

ECONOMIC FEASIBILITY

Economic analysis is the most frequently used technique for evaluating the effectiveness
of a proposed system. More commonly known as cost-benefit analysis; the procedure is
to determine the benefits and savings that are expected from a proposed system and

15
compare them with costs. If benefits outweigh costs, a decision is taken to design and
implement the system.

Cost-Benefit Analysis

Since cost plays an important role in deciding the new system, it must be identified and
estimated properly. Benefits are also of different types and can be grouped on the basis of
advantages they provide to the management.

3.3 DATA FLOW DIAGRAM

0 Level DFD

16
FIRST LEVEL DFD -ELECTRICITY BILL SYSTEM

17
MANAGEM ROLL OF USER MANAGE USER PERMISSION

SECOND LEVEL DFD -ELECTRICITY BILL SYSTEM

ENTITY – RELATIONSHIP DIAGRAM

18
19
3.4. SYSTEM DEVELOPMENT

Software development is a complex process so we divide the process in a small module.


These modules are called system development phases. These phases are combined known
as system development life cycle. These linear cycle phases are given
below: -

i. Recognition of Needs: - It includes preliminary survey and initial investigation by


personnel interviews and questionnaires.

ii. System Analysis: - Detailed evaluation of present system and data collection is done. The
various reports and documents used are studied in detail. After that the interview of
various levels of management is carried out. The DFD. Data dictionary, Menu chart are
the tools used for it.

iii. System Design: - It involves general and detailed design specification, output, input files,
files, program construction plans, all these details are submitted to user and got signed.

iv. System Construction: - It involves implementation of total construction plan i.e.


coding. It is done in a language i.e. known to user, analyst and programmer.

v. Testing: - Each and every input and output program is executed separately and tested for
bugs. Whole of the system is executed and test data is prepared and is fed in to the system
and the output reports are compared with the parameters.

vi. Implementation: -It checks that users requirement are fulfilled or not.
Response time is checked and finally the user manual is prepared and is
submitted.

DATABSE DESIGN
Login table

20
Account table

21
Welcome form

ADD NEW ACCOUNT

22
EDIT ACCOUNT ENTRY

23
DEPOSIT AMOUNT

24
WITHDRAWFORM

25
LIST OF ACCOUNT

26
LIST OF WITHDRAW

LIST OF DEPOSIT

27
CHANGE PASSWORD

28
LOGIN FORM
package bankingproject; import java.sql.*; import javax.swing.*; private
void loginbtnActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here: String
user1,user2,pass1,pass2; user1=txtuser.getText();
pass1=txtpassword.getText(); try {
Class.forName(""net.ucanaccess.jdbc.UcanaccessDriver");
Connectioncon=DriverManager.getConnection("jdbc:ucanaccess://E:\\bankingdatabase.accdb");
Statement stmt=con.createStatement();
String query="select * from logintable";
ResultSet res=stmt.executeQuery(query); res.next();
user2=res.getString("username");
pass2=res.getString(2); if(user1.equals(user2)
&& pass1.equals(pass2))

{
this.hide();
Splash_form obj=new Splash_form(); obj.show();
}
else
JOptionPane.showMessageDialog(null,"incorrect");
} catch(Exception e) {
}
} private void cancelbtnActionPerformed(java.awt.event.ActionEvent evt)
{ // TODO add your handling code here:
System.exit(0);
} public static void main(String args[])
{
java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Lloginform().setVisible(true);
}
});
}

Splash form
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here: mainform obj=new
mainform();
obj.show();

29
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Splash_form().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText()); name=holdertxt.getText();
accounttype=typetxt.getText(); gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");

30
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}
public static void main(String
args[])
{ java.awt.EventQueue.i
nvo keLater(new Runnable()
{ public void run() {
new
Accountform().setVisible(
true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());

31
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {
int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString(); idproof=idtxt.getText();
email=emailtxt.getText(); gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table

32
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

33
}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText();
accounttype=typetxt.getText(); gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText("");
holdertxt.setText(""); typetxt.setText("");

34
idtxt.setText("");
emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText(""); txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;

35
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText("");
holdertxt.setText(""); typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;

36
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query); while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table

37
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query); JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here:
this.hide(); }

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000; try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

38
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here:
this.hide(); }

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

39
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText()); name=holdertxt.getText();
accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText("");
holdertxt.setText(""); typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");

40
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());

41
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText("");
emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText(""); txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();

42
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

MainForm
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
Accountform obj=new Accountform(); obj.show();
}

private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {


Edit_account obj=new Edit_account(); obj.show();
}

private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {


List_of_account obj=new List_of_account(); obj.show();
}

private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {


Depositform obj=new Depositform(); obj.show();
}
private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {
Withdrawform obj=new withdrawform();

43
obj.show() }

private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {


Passwordchange obj=new Passwordchange(); obj.show();
}

private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here:
list_of_withdraw obj=new list_of_withdraw(); obj.show();

private void jMenu2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
list_of_withdraw obj=new list_of_withdraw(); obj.show();
}

private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: list_of_deposit
obj=new list_of_deposit(); obj.show();
}

private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {


System.exit(0);
}

ACCOUNT FORM
package bankingproject; import
java.sql.*;
import javax.swing.*;

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();

44
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000; try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())

45
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable()
{ public void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

46
}

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new

47
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText()); name=holdertxt.getText();
accounttype=typetxt.getText(); gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)

48
{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();

49
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText("");
holdertxt.setText(""); typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000; try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

50
}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Accountform().setVisible(true);
}
});
}

private void savebtnActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,age,contact,gno,balance;
String name,accounttype,gender,idproof,email,gname,address;
accountno=Integer.parseInt(accounttxt.getText());
age=Integer.parseInt(txtage.getText()); gno=Integer.parseInt(txtgno.getText());
balance=Integer.parseInt(txtbalance.getText());
name=holdertxt.getText(); accounttype=typetxt.getText();
gender=combo.getSelectedItem().toString();
idproof=idtxt.getText(); email=emailtxt.getText();
gname=guaranternametxt.getText();
address=txtaddress.getText();
contact=Integer.parseInt(txtcontact.getText()); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="insert into Account_table
values("+accountno+",'"+name+"','"+accounttype+"',"+age+",'"+gender+"',"+contact+",'"
+idproof+"','"+email+"',"+gno+",'"+gname+"','"+address+"',"+balance+")";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(null,"successfully saved");
} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

51
}

private void nextbtnActionPerformed(java.awt.event.ActionEvent evt) {


txtcontact.setText(""); txtage.setText(""); txtgno.setText(""); holdertxt.setText("");
typetxt.setText("");

idtxt.setText(""); emailtxt.setText("");
guaranternametxt.setText("");
txtaddress.setText("");
txtbalance.setText("");
holdertxt.requestFocus();
}

private void exitbtnActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code here: this.hide();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


int accno=300000;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from account_table";
ResultSet res=stmt.executeQuery(query);
while(res.next())
{
accno=Integer.parseInt(res.getString(1));

}
accounttxt.setText(String.valueOf(accno+1)); accounttxt.setEnabled(false);

} catch(Exception e) {
JOptionPane.showMessageDialog(idtxt, e.getMessage());

}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() { new
Accountform().setVisible(true);
}

52
});
}

DEPOSIT FORM
package bankingproject; import java.sql.*; import javax.swing.*; private
void verifyActionPerformed(java.awt.event.ActionEvent evt)
{ try{ int
accno=Integer.parseInt(combo.getSelectedItem().toString());
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from Account_table where accountno="+accno;
ResultSet res=stmt.executeQuery(query); if(res.next())
{
txtname.setText(res.getString("hname"));
txtname.setEnabled(false);
deposit.setEnabled(true);
} else
JOptionPane.showMessageDialog(null, "ïnvalid account number");
}

catch(Exception e)
{}

} private void depositActionPerformed(java.awt.event.ActionEvent evt)


{
int accountno,amount=0,amount2=0; String ddate;
if(txt2.getText().equals(""))
JOptionPane.showMessageDialog(rootPane, "Mention date"); else
if(txt3.getText().equals(""))
JOptionPane.showMessageDialog(rootPane, "fill amount"); else{
accountno=Integer.parseInt(combo.getSelectedItem().toString()); ddate=txt2.getText();
amount=Integer.parseInt(txt3.getText());

try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
stmt2=con.createStatement();
String query="insert into deposit
values("+accountno+",'"+ddate+"',"+amount+")"; stmt2.executeUpdate(query);
stmt=con.createStatement();

53
String q="select * from account_table where accountno="+accountno;
ResultSet res=stmt.executeQuery(q); if(res.next())
{

amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText("");
combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText("");
txt3.setText("");
txtname.setText("");
combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

54
txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance")); String
q2="update account_table set balance="+amount+" where
accountno="+accountno;
stmt.executeUpdate(q2); JOptionPane.showMessageDialog(null,"Amount
deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

55
txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set
balance="+amount+" where
accountno="+accountno;
stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText("");
txt3.setText(""); txtname.setText("");
combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

56
txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText("");
txt3.setText(""); txtname.setText("");
combo.removeAllItems();

}catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

private void backActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here: this.hide();
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Depositform().setVisible(true);
}
});
}

57
txt2.setText("");
txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+"
where accountno="+accountno;
stmt.executeUpdate(q2);

JOptionPane.showMessageDialog(null,"Amount
deposited");
}

txt2.setText("");
txt3.setText("");
txtname.setText("");
combo.removeAllItems();

}catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

private void backActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code
here: this.hide();
}

58
txt2.setText("");
txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+"
where accountno="+accountno;
stmt.executeUpdate(q2);

public static void main(String args[])


{ java.awt.EventQueue.invokeLater(new
Runnable() { public void run() { new
Depositform().setVisible(true);
}
});
}
JOptionPane.showMessageDialog(null,"Amount
deposited");
}

txt2.setText("");
txt3.setText("");
txtname.setText("");
combo.removeAllItems();

}catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

59
txt2.setText("");
txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+"
where accountno="+accountno;
stmt.executeUpdate(q2);

private void backActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code
here: this.hide();
}
public static
void
main(String
args[]) {
java.awt.Event
Queue.invoke
Later(new
Runnable() { public void
run() { new
Depositform().setVisible(true);
}
});
}
JOptionPane.showMessageDialog(null,"Amount
deposited");
}

txt2.setText("");
txt3.setText("");
txtname.setText("");

60
txt2.setText("");
txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+"
where accountno="+accountno;
stmt.executeUpdate(q2);

combo.removeAllItems(); }catch(Ex
ception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

}
private void
backActionPe
rformed(java.a
wt.event.Actio
nEvent evt)
{ // TODO add your handling code
here: this.hide();
}

public static void main(String args[])


{ java.awt.EventQueue.invokeLater(new
Runnable() {
public void run() { new
Depositform().setVisible(true);
}
});
}

61
txt2.setText("");
txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+"
where accountno="+accountno;
stmt.executeUpdate(q2);

JOptionPane.showMessageDialog(null,"Amount
deposited");
}

txt2.setText("");
txt3.setText("");
txtname.setText("");
combo.removeAllItems();

}catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

private void backActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code
here: this.hide();
}

62
txt2.setText("");
txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+"
where accountno="+accountno;
stmt.executeUpdate(q2);

public static void main(String args[])


{ java.awt.EventQueue.invokeLater(new
Runnable() {
public void run() { new
Depositform().setVisible(true);
}
});
}
JOptionPane.showMessageDialog(null,"Amount
deposited");
}

txt2.setText("");
txt3.setText("");
txtname.setText("");
combo.removeAllItems();

}catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

63
txt2.setText("");
txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+"
where accountno="+accountno;
stmt.executeUpdate(q2);

private void backActionPerformed(java.awt.event.ActionEvent evt)


{ // TODO add your handling code
here: this.hide();
}

public static void main(String args[])


{ java.awt.EventQueue.invokeLater(new
Runnable() {
public void run() { new
Depositform().setVisible(true);
}
});
}

64
txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText("");
combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText(""); combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText("");
combo.removeAllItems();
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

65
txt2.setText(""); txt3.setText("");
txtname.setText("");
combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText("");
combo.removeAllItems()
;
amount+=Integer.parseInt(res.getString("balance"));
String q2="update account_table set balance="+amount+" where
accountno="+accountno; stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText(""); txt3.setText("");
txtname.setText("");
combo.removeAllItems();
amount+=Integer.parseInt(res.getStrin
g("balance"));
String q2="update account_table set balance="+amount+"
where
accountno="+accountno;
stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount deposited");
}

txt2.setText("");
txt3.setText(""); txtname.setText("");

66
combo.removeAllItems();

}catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

private void backActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here: this.hide();
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Depositform().setVisible(true);
}
});
}

WITHDRAW FORM
package bankingproject; import
javax.swing.*;
import java.sql.*;

Private void verifyActionPerformed(java.awt.event.ActionEvent evt) {


try{ int
accno=Integer.parseInt(combo.getSelectedItem().toString());
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="select * from Account_table where accountno="+accno;
ResultSet res=stmt.executeQuery(query); if(res.next())
{
txtname.setText(res.getString("hname"));
txtname.setEnabled(false);
} else
JOptionPane.showMessageDialog(null, "ïnvalid account number");
}

67
catch(Exception e)
{}

private void withdrawActionPerformed(java.awt.event.ActionEvent evt) {


int accountno,amount=0,amount2=0; String ddate; boolean found=false;
accountno=Integer.parseInt(combo.getSelectedItem().toString());
ddate=txtwd.getText();
amount=Integer.parseInt(txtamount.getText()); try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
stmt2=con.createStatement(); String
query="insert into withdraw
values("+accountno+",'"+ddate+"',"+amount+")"
;
stmt2.executeUpdate(query);

stmt=con.createStatement();
String q="select * from account_table where accountno="+accountno;
ResultSet res=stmt.executeQuery(q); if(res.next())
{

amount=Integer.parseInt(res.getString("balance"))-amount;

String q2="update account_table set balance="+amount+" where


accountno="+accountno;
stmt.executeUpdate(q2);
JOptionPane.showMessageDialog(null,"Amount withdrawn");
}

txtwd.setText("");
txtamount.setText(""); txtname.setText("");
combo.removeAllItems();
}catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void backActionPerformed(java.awt.event.ActionEvent evt)
{ // TODO add your handling code here:
dispose();

68
}
public static void main(String args[]) { java.awt.EventQueue.invokeLater(new
Runnable() {
public void run() { new
Withdrawform().setVisible(true);
}
});
}

SEARCH ACCOUNT
package bankingproject; import
javax.swing.*; import
javax.swing.table.*; import
java.sql.*;

public class Search_account extends javax.swing.JFrame {

/**
* Creates new form Search_account
*/
Connection c;
Statement state; int s;
public Search_account() { initComponents();
}
priv
ate
void
op1
Acti
onP
erfo
rme
d(ja
va.a
wt.e
vent .
Act
ionE
vent
evt)
{

69
lbl.setText("Enter account No ");
txt.setText("");
txt.requestFocus();
}

private void op2ActionPerformed(java.awt.event.ActionEvent evt) {


lbl.setText("Enter account holder name "); txt.setText("");
txt.requestFocus();
}
private void op3ActionPerformed(java.awt.event.ActionEvent evt) {
txt.setText("");
}

private void SEARCHActionPerformed(java.awt.event.ActionEvent evt) {


DefaultTableModel m=(DefaultTableModel) tb.getModel(); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
c=DriverManager.getConnection("jdbc:odbc:bank");
state=c.createStatement();

String query;
ResultSet res;
//Removing all rows; int
rows=m.getRowCount(); for(int
i=0;i<rows;i++) {
m.removeRow(0);

}
if (op1.isSelected()) {
s=Integer.parseInt(txt.getText()); query="select
* from account_table where accountno="+s;
res=state.executeQuery(query); while(res.next())
{
m.addRow(new Object[]
{ res.getString(1),res.getString(2),res.getString(3),res.getString(5),res.getString(6),res.get
S t ring(11)});
}
} else if (op2.isSelected()) { String
str=(txt.getText()); query="select * from account_table where
hname='"+str+"'";
res=state.executeQuery(query); while(res.next())
{ m.addRow(new Object[]

70
{ res.getString(1),res.getString(2),res.getString(3),res.getString(4),res.getString(5),res.g
etS t ring(6)});
}
} else if (op3.isSelected()) {
String str=(txt.getText()); query="select
* from account_table";
res=state.executeQuery(query);
while(res.next()) {
m.addRow(new Object[]
{ res.getString(1),res.getString(2),res.getString(3),res.getString(4),res.getString(5),res.get
S t ring(6)});
}
}
{}
} catch(Exception e) {
JOptionPane.showMessageDialog(null,e.getMessage());

}
}
private void EXITActionPerformed(java.awt.event.ActionEvent evt) {
dispose();
}

public static void main(String args[]) {


/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed"
desc=" Look and feel setting code
(optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look
and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/ try { for
(javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) { if
("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName()); break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

71
java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() { public void
run() { new
Search_account().setVisible(true);
}
});
}

public static void main(String args[]) {


/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc="
Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look
and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/ try { for
(javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) { if
("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName()); break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {

72
java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Search_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() { public void
run() { new
Search_account().setVisible(true);
}
});
}

LIST OF ACCOUNT
package bankingproject; import
javax.swing.*; import
javax.swing.table.*; import
java.sql.*;

public class List_of_account extends javax.swing.JFrame {

/**
* Creates new form List_of_account
*/
public List_of_account()
{ initComponents();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


dispose();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {

73
DefaultTableModel m=(DefaultTableModel) tb.getModel(); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:bank");
Statement state=c.createStatement();
String query="select * from account_table";
ResultSet res=state.executeQuery(query); while(res.next())
{
m.addRow(new Object[]
{ res.getString(1),res.getString(2),res.getString(3),res.getString(4),res.getString(5),res.get
S t ring(6)});
}
}
catch(Exception e)
{}
}

public static void main(String args[]) {


/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look
and feel.
* For details see
http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/ try { for
(javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) { if
("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName()); break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(List_of_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(List_of_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(List_of_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);

74
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(List_of_account.class.getName()).log(java.util.loggin
g.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() { public void
run() { new
List_of_account().setVisible(true);
}
});
}

LIST OF DEPOSIT

package bankingproject; import java.sql.*;


import javax.swing.table.*;

public class list_of_deposit extends javax.swing.JFrame {

/** Creates new form list_of_deposit */


public list_of_deposit() {
initComponents();
} private void jButton1ActionPerformed(java.awt.event.ActionEvent
evt) { // TODO add your handling code here:
dispose();
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


DefaultTableModel m=(DefaultTableModel) tb.getModel(); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:bank");
Statement state=c.createStatement();
String query="select * from deposit";
ResultSet res=state.executeQuery(query); while(res.next())
{
m.addRow(new Object[] {
res.getString(1),res.getString(2),res.getString(3)});
}

75
}
catch(Exception e)
{}

public static void main(String args[])


{ java.awt.EventQueue.invokeLater(new Runnable() {
public void run() { new
list_of_deposit().setVisible(true);
}
});
}
LIST OF WITHDRAW

package bankingproject; import java.sql.*;


import javax.swing.table.*;

public class list_of_withdraw extends javax.swing.JFrame {

/** Creates new form list_of_withdraw */ public


list_of_withdraw() { initComponents();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here: dispose();

private void formWindowActivated(java.awt.event.WindowEvent evt) {


DefaultTableModel m=(DefaultTableModel) tb.getModel(); try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:bank");
Statement state=c.createStatement();
String query="select * from withdraw";
ResultSet res=state.executeQuery(query); while(res.next())
{
m.addRow(new Object[] {
res.getString(1),res.getString(2),res.getString(3)});
}
}

76
catch(Exception e)
{}
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new list_of_withdraw().setVisible(true);
}
});
}
PASSWORD CHANGE

package bankingproject; import


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

public class Passwordchange extends javax.swing.JFrame {

/** Creates new form Passwordchange */


public Passwordchange()
{ initComponents();
}

private void verifyActionPerformed(java.awt.event.ActionEvent evt) {

String user1,pass1,npass2,cpass; user1=txtuser.getText();


pass1=txtpassword.getText(); try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="Select * from logintable where username='"+user1+"' and
password='"+pass1+"'";
ResultSet res=stmt.executeQuery(query); if(
res.next()) {
JOptionPane.showMessageDialog(null,"Verified Enter new password");
txtnewpass.setEnabled(true); txtcompass.setEnabled(true);
change.setEnabled(true);

} else {
JOptionPane.showMessageDialog(null,"wrong password");

77
}
} catch(Exception e) {
}
}

private void backActionPerformed(java.awt.event.ActionEvent evt) {

dispose();
} private
void changeActionPerforme
d(java.awt.event.Action
Event evt) {
String npass,cpass; npass=txtnewpass.getT
ext();
cpass=txtcompass.getT
ext();
if(npass.equals(cpass)) { try{
Class.forName("sun.jdbc.odbc.JdbcOdbc
Driver");
Connection con=DriverManager.getConnection("jdbc:odbc:bank");
Statement stmt=con.createStatement();
String query="update logintable set password='"+npass+"'";
stmt.executeUpdate(query);
JOptionPane.showMessageDialog(rootPane, "Password changed
successfully");
} catch(Exception e) {
}
} else
JOptionPane.showMessageDialog(rootPane, "Password no match");
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() { public
void run() { new
Passwordchange().setVisible(true);
}
});
}
Process Name:- Report

Description :- This process is for the displaying the reports of Customer and

78
transaction.
form

79
MODULES AND THEIR PROCESS LOGICS

Process Name:- Customer

Description :- This process is for the new Customer entry.

Process Name:- Account

Description : This process displays the all information about the Customer
according to the selection criteria of the Account.This process
gives the facility of selecting different types of query about the
particular Book.

Process Name:- Deposite

Description :- This process is for the searching the entry of particular Account for
deposte amount.

Process Name:- widthdraw

Description :- This process is for the searching the entry of particular account for

SCOPE OF FUTURE APPLICATION

The scope of future application for this system is:

1. A large student database can be accommodated in our application in the future.

2. The related aspects like placement cell, staff details and customer data can be
maintained more easily.

80
3. In the purposed application examination monitoring, so that in future an
increased number of students can be accommodated by the sytem.

4. Employee and Salary Management System currently takes care of Employee


data.

5. The necessary steps have been taken in the proposed system to accommodate
the forthcoming changes regarding the course scheduling and the batches
thereof.

6. The format of different types of reports can be suit the requirements in future
though major modifications will be required but the base of the project will
remain the same and all the working will remain same in this project.

CONCLUSION

After having completed this project, We felt that it was an excellent learning experience
as I deal with a real life project that give a opportunity to working for the students to
make their test more easy, while working on this project I got a good exposure to the
sharp programming skills and the various programming techniques while coding for this
system I was exposed to the vast knowledge about the strength and weakness of JAVA
language
.

A part from this I have been able to appreciate the hard work of programmers spent in
developing such a system the most important realization was the amount of cooperation,
dedication, hardwork and team spirit that goes into making of a successful project.

BIBLIOGRAPHY
Books
Following books and eBook are used to complete this project reports.

81
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

WEB REFRENCES
www.microsoft.com

82

You might also like