Project470 1
Project470 1
Project470 1
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
1) Time Consuming:
2) Reliability:
3) Man Power:
In this project man power is fully used. A number
of employees needed to
manage the banking system.
1) Less Accurate:
PROPOSED SYSTEM:
REQUIREMENT:
Functional Requirements
Non- Functional Requirements
System Requirements
Functional requirements:
Manage the picture with tools such as pencil, airbrush, clear all.
Non-Functional requirements:
System Requirements:
Hardware requirements:
Processor: Pentium IV
RAM:128MB
required HARD
DISK: 1GB
Software requirements:
JDK 1.5
MYSQL
Operation Management
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() {
ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icon/bank.png"));
this.add(image);
this.add(iimage);
this.label1.setForeground(Color.ORANGE);
this.add(this.label1);
this.label2.setForeground(Color.ORANGE);
this.add(this.label2);
this.add(this.textField2);
this.label3.setForeground(Color.ORANGE);
this.label3.setFont(new Font("Ralway", 1, 28));
this.add(this.label3);
this.add(this.passwordField2);
this.button1.setForeground(Color.black);
this.button1.addActionListener(this);
this.add(this.button1);
this.button2.setForeground(Color.black);
this.button2.addActionListener(this);
this.add(this.button2);
this.button3.addActionListener(this);
this.add(this.button3);
this.add(iiimage);
this.setLayout((LayoutManager)null);
this.setSize(850, 480);
this.setLocation(450, 200);
this.setUndecorated(true);
this.setVisible(true);
try {
if (e.getSource() == this.button1) {
connect c = new connect();
if (resuitset.next()) {
this.setVisible(false);
new main_class(pin);
} else {
JOptionPane.showMessageDialog((Component)null, "INCORRECT
CARD_NO AND PIN_NO");
this.textField2.setText("");
this.passwordField2.setText("");
new Signup();
this.setVisible(false);
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;
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;
long first4;
String first;
Signup() {
super("APPLICATION FORM");
this.first4 = this.ran.nextLong() % 9000L + 1000L;
this.add(image);
new ImageIcon(ClassLoader.getSystemResource("icon/page1.jpg"));
this.add(iimage);
this.add(label1);
labelName.setForeground(Color.ORANGE);
this.add(labelName);
this.add(this.textName);
labelFname.setForeground(Color.ORANGE);
this.add(labelFname);
this.add(this.textFname);
DOB.setForeground(Color.ORANGE);
DOB.setBounds(100, 290, 200, 30);
this.add(DOB);
this.add(this.dateChooser);
labelG.setForeground(Color.ORANGE);
this.add(labelG);
this.add(this.r1);
this.add(this.r2);
this.add(this.r3);
buttonGroup1.add(this.r1);
buttonGroup1.add(this.r2);
buttonGroup1.add(this.r3);
labele.setForeground(Color.ORANGE);
this.add(labele);
this.add(this.textEm);
labelmar.setForeground(Color.ORANGE);
this.add(labelmar);
this.r4 = new JRadioButton("Married");
this.add(this.r4);
this.add(this.r5);
this.add(this.r6);
buttonGroup2.add(this.r4);
buttonGroup2.add(this.r5);
buttonGroup2.add(this.r6);
labeladd.setForeground(Color.ORANGE);
this.add(labeladd);
this.textadd = new JTextField();
this.add(this.textadd);
labelcity.setForeground(Color.ORANGE);
this.add(labelcity);
this.add(this.textcity);
labelpin.setForeground(Color.ORANGE);
this.add(labelpin);
labelst.setForeground(Color.ORANGE);
this.add(labelst);
this.add(this.textstate);
this.next.setBackground(Color.BLACK);
this.next.setForeground(Color.WHITE);
this.next.addActionListener(this);
this.add(this.next);
this.add(iiimage);
this.setLayout((LayoutManager)null);
this.setSize(850, 800);
this.setLocation(360, 40);
this.setUndecorated(true);
this.setVisible(true);
if (this.r1.isSelected()) {
gender = "Male";
} else if (this.r2.isSelected()) {
gender = "Female";
} else if (this.r3.isSelected()) {
gender = "Tansgender";
}
if (this.r4.isSelected()) {
married = "married";
} else if (this.r5.isSelected()) {
married = "unmarried";
} else if (this.r6.isSelected()) {
married = "Other";
try {
if (this.textName.getText().equals("")) {
} 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);
var15.printStackTrace();
new Signup();
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;
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);
}
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();
}
}
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;
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);
}
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();
}
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;
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);
}
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);
}
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;
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);
}
while(resultSet.next()) {
if (resultSet.getString("Deposit_type").equals("Deposit")) {
balace += Integer.parseInt(resultSet.getString("amount"));
} else {
balace -= Integer.parseInt(resultSet.getString("amount"));
}
}
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;
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);
}
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;
}
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;
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);
}
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;
}
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;
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);
}
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"));
}
}
this.setVisible(false);
new main_class(this.pin);
}
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;
String pin;
JLabel label1;
JLabel label2;
JButton button1;
JButton button2;
BalanceEquriy(String pin) {
this.pin = pin;
this.add(image);
this.label1.setForeground(Color.WHITE);
image.add(this.label1);
this.label2.setForeground(Color.WHITE);
this.label2.setBounds(300, 50, 700, 35);
image.add(this.label2);
this.button2.setForeground(Color.black);
this.button2.addActionListener(this);
image.add(this.button2);
int balace = 0;
try {
while(resultSet.next()) {
if (resultSet.getString("Deposit_type").equals("Deposit")) {
balace += Integer.parseInt(resultSet.getString("Amount"));
} else {
balace -= Integer.parseInt(resultSet.getString("Amount"));
var9.printStackTrace();
this.label2.setText("" + balace);
this.setLayout((LayoutManager)null);
this.setSize(1550, 1080);
this.setLocation(0, 0);
this.setUndecorated(true);
this.setVisible(true);
this.setVisible(false);
new main_class(this.pin);
new BalanceEquriy("");
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
}
}
ADVANTAGES OF SYSTEM
FUTURE SCOPE