BANKCODE
BANKCODE
package ASimulatorSystem;
import [Link].*;
Connection c;
Statement s;
public conn(){
try{
[Link]("[Link]");
c =[Link]("jdbc:mysql:///project2","root","");
s =[Link]();
}catch(Exception e){
[Link](e);
/*
Note : package ASimulatorSystem; this line will give error if your package
*/
2 - Create next class with name 'Login' and paste the code below in it
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JLabel l1,l2,l3;
JTextField tf1;
JPasswordField pf2;
JButton b1,b2,b3;
Login(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int z = getWidth() - x;
int w = z/y;
l3 = new JLabel("PIN:");
[Link]([Link]);
[Link]([Link]);
b2 = new JButton("CLEAR");
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
setLayout(null);
[Link](175,50,450,200);
add(l1);
[Link](125,150,375,200);
add(l2);
[Link](125,225,375,200);
add(l3);
add(tf1);
[Link](300,310,230,30);
add(pf2);
[Link](300,400,100,30);
add(b1);
[Link](430,400,100,30);
add(b2);
[Link](300,450,230,30);
add(b3);
[Link](this);
[Link](this);
[Link](this);
getContentPane().setBackground([Link]);
setSize(750,750);
setLocation(500,200);
setVisible(true);
try{
String a = [Link]();
String b = [Link]();
String q = "select * from login where cardno = '"+a+"' and pin = '"+b+"'";
ResultSet rs = [Link](q);
if([Link]()==b1){
if([Link]()){
new Transcations().setVisible(true);
setVisible(false);
}else{
}else if([Link]()==b2){
[Link]("");
[Link]("");
}else if([Link]()==b3){
new Signup().setVisible(true);
setVisible(false);
}catch(Exception e){
[Link]();
[Link]("error: "+e);
}
public static void main(String[] args){
new Login().setVisible(true);
/*
Note : Make sure your name of class, file name and constructor name should be
same and start with
*/
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15;
JTextField t1,t2,t3,t4,t5,t6,t7;
JRadioButton r1,r2,r3,r4,r5;
JButton b;
JComboBox c1,c2,c3;
Signup(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int z = getWidth() - x;
int w = z/y;
l3 = new JLabel("Name:");
l6 = new JLabel("Gender:");
l9 = new JLabel("Address:");
t1 = new JTextField();
t3 = new JTextField();
t4 = new JTextField();
t5 = new JTextField();
t6 = new JTextField();
t7 = new JTextField();
b = new JButton("Next");
[Link](new Font("Raleway", [Link], 14));
[Link]([Link]);
[Link]([Link]);
r1 = new JRadioButton("Male");
[Link]([Link]);
r2 = new JRadioButton("Female");
[Link]([Link]);
r3 = new JRadioButton("Married");
[Link]([Link]);
r4 = new JRadioButton("Unmarried");
[Link]([Link]);
r5 = new JRadioButton("Other");
c1 = new JComboBox(date);
[Link]([Link]);
String month[] =
{"January","February","March","April","May","June","July","August","Septemb
er","October","November","December"};
c2 = new JComboBox(month);
[Link]([Link]);
String year[] =
{"1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","20
00","2001","2002"};
c3 = new JComboBox(year);
[Link]([Link]);
setLayout(null);
[Link](140,20,600,40);
add(l1);
[Link](290,70,600,30);
add(l2);
[Link](100,140,100,30);
add(l3);
[Link](300,140,400,30);
add(t1);
[Link](100,190,200,30);
add(l4);
[Link](300,190,400,30);
add(t2);
[Link](100,240,200,30);
add(l5);
[Link](300,240,40,30);
add(l13);
[Link](340,240,60,30);
add(c1);
[Link](410,240,50,30);
add(l14);
[Link](460,240,100,30);
add(c2);
[Link](570,240,40,30);
add(l15);
[Link](610,240,90,30);
add(c3);
[Link](100,290,200,30);
add(l6);
[Link](300,290,60,30);
add(r1);
[Link](450,290,90,30);
add(r2);
[Link](100,340,200,30);
add(l7);
[Link](300,340,400,30);
add(t3);
[Link](100,390,200,30);
add(l8);
[Link](300,390,100,30);
add(r3);
[Link](450,390,100,30);
add(r4);
[Link](635,390,100,30);
add(r5);
[Link](100,440,200,30);
add(l9);
[Link](300,440,400,30);
add(t4);
[Link](100,490,200,30);
add(l10);
[Link](300,490,400,30);
add(t5);
[Link](100,540,200,30);
add(l11);
[Link](300,540,400,30);
add(t6);
[Link](100,590,200,30);
add(l12);
[Link](300,590,400,30);
add(t7);
[Link](620,660,80,30);
add(b);
[Link](this);
getContentPane().setBackground([Link]);
setSize(850,850);
setLocation(500,90);
setVisible(true);
String a = [Link]();
String b = [Link]();
String ac = (String)[Link]();
String bc = (String)[Link]();
String cc = (String)[Link]();
String d = null;
if([Link]()){
d = "Male";
else if([Link]()){
d = "Female";
String e = [Link]();
String f = null;
if([Link]()){
f = "Married";
}else if([Link]()){
f = "Unmarried";
}else if([Link]()){
f = "Other";
}
String g = [Link]();
String h = [Link]();
String i = [Link]();
String j = [Link]();
try{
if([Link]().equals("")){
}else{
[Link](q1);
new Signup2().setVisible(true);
setVisible(false);
}
}catch(Exception ex){
[Link]();
new Signup().setVisible(true);
/*
*/
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12;
JButton b;
JRadioButton r1,r2,r3,r4;
JTextField t1,t2,t3;
JComboBox c1,c2,c3,c4,c5;
Signup2(){
setFont(new Font("System", [Link], 22));
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int w = z/y;
l2 = new JLabel("Religion:");
l3 = new JLabel("Category:");
[Link](new Font("Raleway", [Link], 18));
l4 = new JLabel("Income:");
l5 = new JLabel("Educational");
l6 = new JLabel("Occupation:");
b = new JButton("Next");
[Link]([Link]);
[Link]([Link]);
t1 = new JTextField();
t2 = new JTextField();
r1 = new JRadioButton("Yes");
[Link]([Link]);
r2 = new JRadioButton("No");
[Link]([Link]);
r3 = new JRadioButton("Yes");
[Link]([Link]);
r4 = new JRadioButton("No");
[Link]([Link]);
String religion[] = {"Hindu","Muslim","Sikh","Christian","Other"};
c1 = new JComboBox(religion);
[Link]([Link]);
c2 = new JComboBox(category);
[Link]([Link]);
c3 = new JComboBox(income);
[Link]([Link]);
c4 = new JComboBox(education);
[Link]([Link]);
c5 = new JComboBox(occupation);
[Link]([Link]);
setLayout(null);
[Link](700,10,60,30);
add(l12);
[Link](760,10,60,30);
add(t3);
[Link](280,30,600,40);
add(l1);
[Link](100,120,100,30);
add(l2);
[Link](350,120,320,30);
add(c1);
[Link](100,170,100,30);
add(l3);
[Link](350,170,320,30);
add(c2);
[Link](100,220,100,30);
add(l4);
[Link](350,220,320,30);
add(c3);
[Link](100,270,150,30);
add(l5);
[Link](350,270,320,30);
add(c4);
[Link](100,290,150,30);
add(l11);
[Link](100,340,150,30);
add(l6);
[Link](350,340,320,30);
add(c5);
[Link](100,390,150,30);
add(l7);
[Link](350,390,320,30);
add(t1);
[Link](100,440,180,30);
add(l8);
[Link](350,440,320,30);
add(t2);
[Link](100,490,150,30);
add(l9);
[Link](350,490,100,30);
add(r1);
[Link](460,490,100,30);
add(r2);
[Link](100,540,180,30);
add(l10);
[Link](350,540,100,30);
add(r3);
[Link](460,540,100,30);
add(r4);
[Link](570,600,100,30);
add(b);
[Link](this);
getContentPane().setBackground([Link]);
setSize(850,850);
setLocation(500,90);
setVisible(true);
String a = (String)[Link]();
String b = (String)[Link]();
String c = (String)[Link]();
String d = (String)[Link]();
String e = (String)[Link]();
String f = [Link]();
String g = [Link]();
String h = "";
if([Link]()){
h = "Yes";
}
else if([Link]()){
h = "No";
String i = "";
if([Link]()){
i = "Yes";
}else if([Link]()){
i = "No";
String j = [Link]();
try{
if([Link]().equals("")){
}else{
[Link](q1);
new Signup3().setVisible(true);
setVisible(false);
}catch(Exception ex){
[Link]();
new Signup2().setVisible(true);
}
}
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11;
JRadioButton r1,r2,r3,r4;
JButton b1,b2;
JCheckBox c1,c2,c3,c4,c5,c6,c7;
JTextField t1;
Signup3(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int w = z/y;
l4 = new JLabel("XXXX-XXXX-XXXX-4184");
l7 = new JLabel("PIN:");
l8 = new JLabel("XXXX");
b1 = new JButton("Submit");
[Link]([Link]);
[Link]([Link]);
b2 = new JButton("Cancel");
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
c6 = new JCheckBox("E-Statement");
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
t1 = new JTextField();
[Link](new Font("Raleway", [Link], 12));
setLayout(null);
[Link](700,10,70,30);
add(l11);
[Link](770,10,40,30);
add(t1);
[Link](280,50,400,40);
add(l1);
[Link](100,140,200,30);
add(l2);
[Link](100,180,150,30);
add(r1);
[Link](350,180,300,30);
add(r2);
[Link](100,220,250,30);
add(r3);
[Link](350,220,250,30);
add(r4);
[Link](100,300,200,30);
add(l3);
[Link](330,300,250,30);
add(l4);
[Link](100,330,200,20);
add(l5);
[Link](330,330,500,20);
add(l6);
[Link](100,370,200,30);
add(l7);
[Link](330,370,200,30);
add(l8);
[Link](100,400,200,20);
add(l9);
[Link](100,450,200,30);
add(l10);
[Link](100,500,200,30);
add(c1);
[Link](350,500,200,30);
add(c2);
[Link](100,550,200,30);
add(c3);
[Link](350,550,200,30);
add(c4);
[Link](100,600,200,30);
add(c5);
[Link](350,600,200,30);
add(c6);
[Link](100,680,600,20);
add(c7);
[Link](300,720,100,30);
add(b1);
[Link](420,720,100,30);
add(b2);
getContentPane().setBackground([Link]);
setSize(850,850);
setLocation(500,90);
setVisible(true);
[Link](this);
[Link](this);
String a = null;
if([Link]()){
a = "Saving Account";
else if([Link]()){
else if([Link]()){
a = "Current Account";
}else if([Link]()){
}
Random ran = new Random();
String b = "";
if([Link]()){
if([Link]()){
if([Link]()){
if([Link]()){
if([Link]()){
if([Link]()){
b = b+" E-Statement";
String c = [Link]();
try{
if([Link]()==b1){
if([Link]("")){
}else{
[Link](q1);
[Link](q2);
new Deposit().setVisible(true);
setVisible(false);
}else if([Link]()==b2){
[Link](0);
}catch(Exception ex){
[Link]();
new Signup3().setVisible(true);
}
6 - Create next class with name 'Transactions'. This is also your main class after
Login and Signup.
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link];
JLabel l1;
JButton b1,b2,b3,b4,b5,b6,b7;
Transcations(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int x = [Link]("TRANSACTION");
int w = z/y;
setTitle(pad+"TRANSACTION");
b1 = new JButton("DEPOSIT");
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
b6 = new JButton("BALANCE ENQUIRY");
[Link]([Link]);
[Link]([Link]);
b7 = new JButton("EXIT");
[Link]([Link]);
[Link]([Link]);
setLayout(null);
[Link](100,100,700,40);
add(l1);
[Link](40,250,300,60);
add(b1);
[Link](440,250,300,60);
add(b2);
[Link](40,360,300,60);
add(b3);
[Link](440,360,300,60);
add(b4);
[Link](40,470,300,60);
add(b5);
[Link](440,470,300,60);
add(b6);
[Link](240,600,300,60);
add(b7);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
getContentPane().setBackground([Link]);
setSize(800,800);
setLocation(500,90);
setVisible(true);
if([Link]()==b1){
new Deposit().setVisible(true);
setVisible(false);
}
else if([Link]()==b2){
new Withdrawl().setVisible(true);
setVisible(false);
else if([Link]()==b3){
new FastCash().setVisible(true);
setVisible(false);
}else if([Link]()==b4){
new Login().setVisible(true);
setVisible(false);
}else if([Link]()==b5){
new Pin().setVisible(true);
setVisible(false);
}else if([Link]()==b6){
String pinn = [Link]("Enter PIN");
try {
if([Link]()){
} catch (Exception e) {
[Link]();
}else if([Link]()==b7){
[Link](0);
new Transcations().setVisible(true);
}
7 - Create next class with name 'Deposit'. This frame will open from the
Transaction frame.
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JTextField t1,t2;
JButton b1,b2,b3;
JLabel l1,l2,l3;
Deposit(){
setFont(new Font("System", [Link], 22));
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int x = [Link]("DEPOSIT");
int w = z/y;
setTitle(pad+"DEPOSIT");
t2 = new JTextField();
b1 = new JButton("DEPOSIT");
[Link]([Link]);
[Link]([Link]);
b2 = new JButton("BACK");
[Link]([Link]);
[Link]([Link]);
b3 = new JButton("EXIT");
[Link]([Link]);
[Link]([Link]);
setLayout(null);
[Link](620,10,80,30);
add(l3);
[Link](700,10,40,30);
add(t2);
[Link](150,150,800,60);
add(l1);
[Link](290,210,800,60);
add(l2);
[Link](250,300,300,50);
add(t1);
[Link](260,380,125,50);
add(b1);
[Link](415,380,125,50);
add(b2);
[Link](300,550,200,50);
add(b3);
[Link](this);
[Link](this);
[Link](this);
getContentPane().setBackground([Link]);
setSize(800,800);
setLocation(500,90);
setVisible(true);
try{
String a = [Link]();
String b = [Link]();
if([Link]()==b1){
if([Link]().equals("")){
}else{
double balance = 0;
if([Link]()){
String pin = [Link]("pin");
balance = [Link]("balance");
double d = [Link](a);
balance+=d;
[Link](q1);
new Transcations().setVisible(true);
setVisible(false);
}
}else if([Link]()==b2){
new Transcations().setVisible(true);
setVisible(false);
}else if([Link]()==b3){
[Link](0);
}catch(Exception e){
[Link]();
[Link]("error: "+e);
new Deposit().setVisible(true);
}
}
8 - Create next class with name 'deposit1'. This frame will open just after signup
completes.
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link];
import [Link].*;
JTextField t1,t2;
JButton b1,b2,b3;
JLabel l1,l2,l3;
deposit1(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int x = [Link]("DEPOSIT");
int w = z/y;
setTitle(pad+"DEPOSIT");
t1 = new JTextField();
t2 = new JTextField();
b1 = new JButton("DEPOSIT");
[Link]([Link]);
[Link]([Link]);
b2 = new JButton("BACK");
[Link]([Link]);
[Link]([Link]);
b3 = new JButton("EXIT");
[Link]([Link]);
setLayout(null);
[Link](620,10,80,30);
add(l3);
[Link](700,10,40,30);
add(t2);
[Link](150,150,800,60);
add(l1);
[Link](290,210,800,60);
add(l2);
[Link](250,300,300,50);
add(t1);
[Link](260,380,125,50);
add(b1);
[Link](415,380,125,50);
add(b2);
[Link](300,550,200,50);
add(b3);
[Link](this);
[Link](this);
[Link](this);
getContentPane().setBackground([Link]);
setSize(800,800);
setLocation(500,90);
setVisible(true);
String a = [Link]();
String b = [Link]();
if([Link]()==b1){
if([Link]().equals("")){
}else{
[Link](q1);
[Link](null, "Rs. "+a+" Deposited
Successfully");
new Transcations().setVisible(true);
setVisible(false);
}else if([Link]()==b2){
new Transcations().setVisible(true);
setVisible(false);
}else if([Link]()==b3){
[Link](0);
}
}catch(Exception e){
[Link]();
[Link]("error: "+e);
new deposit1().setVisible(true);
/*
Note : There are two deposit classes. Open will open just after you completes
signup and other will get open after you click Deposit button on Transaction
frame
*/
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JTextField t1,t2;
JButton b1,b2,b3;
JLabel l1,l2,l3,l4;
Withdrawl(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int x = [Link]("WITHDRAWAL");
int w = z/y;
setTitle(pad+"WITHDRAWAL");
t1 = new JTextField();
t2 = new JTextField();
b1 = new JButton("WITHDRAW");
[Link]([Link]);
[Link]([Link]);
b2 = new JButton("BACK");
[Link]([Link]);
[Link]([Link]);
b3 = new JButton("EXIT");
[Link](new Font("System", [Link], 18));
[Link]([Link]);
[Link]([Link]);
setLayout(null);
[Link](620,10,80,30);
add(l4);
[Link](700,10,40,30);
add(t2);
[Link](90,100,800,60);
add(l1);
[Link](270,160,800,60);
add(l2);
[Link](120,260,800,60);
add(l3);
[Link](210,340,360,50);
add(t1);
[Link](220,400,160,50);
add(b1);
[Link](400,400,160,50);
add(b2);
[Link](300,550,200,50);
add(b3);
[Link](this);
[Link](this);
[Link](this);
getContentPane().setBackground([Link]);
setSize(800,800);
setLocation(500,90);
setVisible(true);
try{
String a = [Link]();
String b = [Link]();
if([Link]()==b1){
if([Link]().equals("")){
}else{
conn c1 = new conn();
double balance = 0;
if([Link]()){
balance = [Link]("balance");
double d = [Link](a);
balance-=d;
[Link](q1);
}
[Link](null, "Rs. "+a+" Debited
Successfully");
new Transcations().setVisible(true);
setVisible(false);
}else if([Link]()==b2){
new Transcations().setVisible(true);
setVisible(false);
}else if([Link]()==b3){
[Link](0);
}catch(Exception e){
[Link]();
[Link]("error: "+e);
new Withdrawl().setVisible(true);
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JLabel l1,l2;
JButton b1,b2,b3,b4,b5,b6,b7,b8;
JTextField t1;
FastCash(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
int w = z/y;
setTitle(pad+"FAST CASH");
t1 = new JTextField();
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
[Link]([Link]);
b7 = new JButton("BACK");
[Link]([Link]);
[Link]([Link]);
b7 = new JButton("EXIT");
[Link]([Link]);
[Link]([Link]);
setLayout(null);
[Link](640,10,60,40);
add(l2);
[Link](710,10,60,40);
add(t1);
[Link](100,100,700,40);
add(l1);
[Link](40,250,300,60);
add(b1);
[Link](440,250,300,60);
add(b2);
[Link](40,360,300,60);
add(b3);
[Link](440,360,300,60);
add(b4);
[Link](40,470,300,60);
add(b5);
[Link](440,470,300,60);
add(b6);
[Link](240,600,300,60);
add(b7);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
getContentPane().setBackground([Link]);
setSize(800,800);
setLocation(500,90);
setVisible(true);
}
public void actionPerformed(ActionEvent ae){
try{
String a = [Link]();
double balance = 0;
if([Link]()==b1){
if([Link]()){
balance = [Link]("balance");
balance-=100;
[Link](q1);
new Transcations().setVisible(true);
setVisible(false);
else if([Link]()==b2){
if([Link]()){
balance = [Link]("balance");
balance-=500;
[Link](q1);
new Transcations().setVisible(true);
setVisible(false);
}
else if([Link]()==b3){
if([Link]()){
balance = [Link]("balance");
balance-=1000;
[Link](q1);
}
new Transcations().setVisible(true);
setVisible(false);
else if([Link]()==b4){
if([Link]()){
String pin = [Link]("pin");
balance = [Link]("balance");
balance-=2000;
[Link](q1);
new Transcations().setVisible(true);
setVisible(false);
}
else if([Link]()==b5){
if([Link]()){
balance = [Link]("balance");
balance-=5000;
[Link](q1);
}
[Link](null, "Rs. "+5000+" Debited
Successfully");
new Transcations().setVisible(true);
setVisible(false);
else if([Link]()==b6){
if([Link]()){
balance = [Link]("balance");
balance-=10000;
[Link](q1);
new Transcations().setVisible(true);
setVisible(false);
else if([Link]()==b7){
[Link](0);
}catch(Exception e){
[Link]();
[Link]("error: "+e);
new FastCash().setVisible(true);
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JPasswordField t1,t2,t3;
JButton b1,b2;
JLabel l1,l2,l3,l4;
Pin(){
Font f = getFont();
FontMetrics fm = getFontMetrics(f);
setTitle(pad+"PIN CHANGE");
t1 = new JPasswordField();
t3 = new JPasswordField();
b1 = new JButton("SAVE");
[Link]([Link]);
[Link]([Link]);
b2 = new JButton("BACK");
[Link]([Link]);
[Link]([Link]);
[Link](this);
[Link](this);
setLayout(null);
[Link](220,130,800,60);
add(l1);
[Link](100,240,150,40);
add(l2);
[Link](100,300,150,40);
add(l3);
[Link](100,360,200,40);
add(l4);
[Link](310,240,360,40);
add(t1);
[Link](310,300,360,40);
add(t2);
[Link](310,360,360,40);
add(t3);
[Link](220,460,160,50);
add(b1);
[Link](400,460,160,50);
add(b2);
getContentPane().setBackground([Link]);
setSize(800,800);
setLocation(500,90);
setVisible(true);
try{
String a = [Link]();
String b = [Link]();
String c = [Link]();
if([Link]()==b1){
if([Link]().equals("")){
if([Link]().equals("")){
if ([Link]().equals("")){
if([Link]().equals([Link]())){
String q2 = "update login set pin = '"+b+"' where pin = '"+a+"' ";
String q3 = "update signup3 set pin = '"+b+"' where pin = '"+a+"' ";
[Link](q1);
[Link](q2);
[Link](q3);
new Transcations().setVisible(true);
setVisible(false);
}else{
}
}else if([Link]()==b2){
new Transcations().setVisible(true);
setVisible(false);
}catch(Exception e){
[Link]();
[Link]("error: "+e);
new Pin().setVisible(true);
}
12 - Create next class with name "MiniStatement"
package ASimulatorSystem;
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
JButton b1;
MiniStatement(){
super("Mini Statement");
setSize(1200,650);
setLocation(200,200);
try{
ResultSet rs = [Link](s1);
while([Link]()){
y[i][j++]=[Link]("customer_name");
y[i][j++]=[Link]("date");
y[i][j++]=[Link]("deposit");
y[i][j++]=[Link]("withdraw");
y[i][j++]=[Link]("balance");
i++;
j=0;
t1 = new JTable(y,x);
}catch(Exception e){
[Link]();
b1 = new JButton("Print");
add(b1,"South");
add(sp);
[Link](this);
try{
[Link]();
}catch(Exception e){}
Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et
nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.
2:30 PM