-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBankManagement.java
154 lines (106 loc) · 4.54 KB
/
BankManagement.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package bankmanagement;
/**
*
* @author cotad
*/
import java.awt.Color;
import java.awt.Font;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class BankManagement extends JFrame implements ActionListener {
JLabel label1,label2,label3;
JTextField textField2;
JPasswordField passwordField3;
JButton button1,button2,button3;
String formno = "null";
BankManagement(){
super("Bank Management System");
ImageIcon i1= new ImageIcon(ClassLoader.getSystemResource("iconn/bank.png"));
Image i2 = i1.getImage().getScaledInstance(100, 100, Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(350,10,100,100);
add(image);
ImageIcon ii1= new ImageIcon(ClassLoader.getSystemResource("iconn/card.png"));
Image ii2 = ii1.getImage().getScaledInstance(100, 100, Image.SCALE_DEFAULT);
ImageIcon ii3 = new ImageIcon(ii2);
JLabel iimage = new JLabel(ii3);
iimage.setBounds(650,350,100,100);
add(iimage);
label1 = new JLabel("WELCOME TO ATM");
label1.setForeground( Color.WHITE);
label1.setFont(new Font("AvantG",Font.BOLD,38));
label1.setBounds(230,125,450,40);
add(label1);
label2 = new JLabel("card No");
label2.setFont(new Font("Ralway",Font.BOLD,28));
label2.setForeground(Color.WHITE);
label2.setBounds(150,190,375,30);
add(label2);
textField2 = new JTextField(15);
textField2.setBounds(325,190,230,30);
textField2.setFont(new Font("Arial",Font.BOLD,14));
add(textField2);
label3 = new JLabel("PIN: ");
label3.setFont(new Font("Ralway",Font.BOLD,28));
label3.setForeground(Color.WHITE);
label3.setBounds(150,250,375,30);
add(label3);
passwordField3 = new JPasswordField(15);
passwordField3.setBounds(325,250,230,30);
passwordField3.setFont(new Font("Arial",Font.BOLD,14));
add(passwordField3);
button1 = new JButton("SIGN IN");
button1.setFont(new Font("Arial",Font.BOLD,14));
button1.setForeground(Color.WHITE);
button1.setBackground(Color.BLACK);
button1.setBounds(300,300,100,30);
button1.addActionListener(this);
add(button1);
button2 = new JButton("CLEAR");
button2.setFont(new Font("Arial",Font.BOLD,14));
button2.setForeground(Color.WHITE);
button2.setBackground(Color.BLACK);
button2.setBounds(430,300,100,30);
button2.addActionListener(this);
add(button2);
button3 = new JButton(" SIGN UP");
button3.setFont(new Font("Arial",Font.BOLD,14));
button3.setForeground(Color.WHITE);
button3.setBackground(Color.BLACK);
button3.setBounds(300,350,230,30);
add(button3);
ImageIcon iii1= new ImageIcon(ClassLoader.getSystemResource("iconn/Backbg.png"));
Image iii2 = iii1.getImage().getScaledInstance(850, 480, Image.SCALE_DEFAULT);
ImageIcon iii3 = new ImageIcon(iii2);
JLabel iiimage = new JLabel(iii3);
iimage.setBounds(0,0,850,480);
add(iiimage);
setSize(850,480);
setLocation(450,200);
setVisible(true);
}
public static void main(String[] args) {
new BankManagement();
new BalanceEnquriy("");
}
@Override
public void actionPerformed(ActionEvent e) {
try{
if(e.getSource() ==button1){
}else if(e.getSource()==button2){
textField2.setText("");
passwordField3.setText("");
}else if(e.getSource()==button3){
}
}catch(Exception E){
E.printStackTrace();
}
}
}