-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenAccount.java
More file actions
140 lines (97 loc) · 2.85 KB
/
openAccount.java
File metadata and controls
140 lines (97 loc) · 2.85 KB
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
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.sql.*;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
public class openAccount extends JFrame
implements ActionListener
{
// UI1
JLabel l1,l2,l3;
JButton b1;
JComboBox cb1;
static String emBANK;
public void openAccountUI1()
{
super.setBounds(450, 150, 400, 350);
super.setTitle("OPEN-ACCOUNT");
super.setResizable(false);
// JFrame COLOR
setLayout(new BorderLayout());
setContentPane(new JLabel(new ImageIcon
("E:\\eclipse-workspace\\BANKING\\wallpaper\\bb2.jpg")));
setLayout(new FlowLayout());
Font f1=new Font("",Font.TRUETYPE_FONT,20);
l1 = new JLabel("IN WHICH BANK YOU WANT ");
l1.setBounds(50, -10, 300, 100);
super.add(l1);
l1.setFont(f1);
l1.setForeground(Color.white);
l2 = new JLabel("TO OPEN A BANK ACCOUNT ? ");
l2.setBounds(40, 20, 300, 100);
super.add(l2);
l2.setFont(f1);
l2.setForeground(Color.white);
// combo
String[] list1 = {"AXIS BANK","HDFC BANK","SBI BANK","PNB BANK"
,"KOTAK MAHINDRA BANK"};
cb1=new JComboBox(list1);
cb1.setBounds(80, 150, 200, 50);
super.add(cb1);
cb1.setBackground(Color.black);
cb1.setForeground(Color.white);
cb1.setEditable(false);
// button
b1=new JButton("PROCEED");
b1.setBounds(250, 220, 80, 30);
super.add(b1);
b1.addActionListener(this);
Font f2 = new Font("",Font.ITALIC,8);
b1.setFont(f2);
b1.setBackground(Color.green);
b1.setForeground(Color.black);
// 3rd last
super.setLayout(null);
// 2nd last
super.setVisible(true);
//last st
super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String[] args)
{
openAccount run= new openAccount();
run.openAccountUI1();
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==b1)
{
String item = (String)cb1.getSelectedItem();
//System.out.println(item);
//System.out.println(login.emVERIFIED);
emBANK = item;
openAccount2 run98= new openAccount2();
run98.openAccountUI2();
super.dispose();
}
}
}