-
Notifications
You must be signed in to change notification settings - Fork 1
/
EngTRANS.java
94 lines (79 loc) · 2.86 KB
/
EngTRANS.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
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class EngTRANS extends JFrame implements ActionListener {
// public static void main(String[] args) {
// new EngTRANS();
// }
JFrame frame;
JLabel bankLabel;
JButton Withdrawl;
JButton Tranfer;
JButton Payment;
JButton Enquiry;
Font myFont = new Font("Dialog", Font.BOLD, 30);
Font myFont1 = new Font("Monospaced", Font.BOLD, 25);
public EngTRANS(){
// defining the frame;
frame = new JFrame("Pawan Bank PVT LTD");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(750, 750);
frame.setLayout(null);
frame.getContentPane().setBackground(new Color(0, 0,0));
// define the Main text;
bankLabel = new JLabel("Select a Transaction");
bankLabel.setFont(myFont);
bankLabel.setForeground(new Color(192,192,192));
bankLabel.setBounds(150, 100, 400, 50);
// defining the Withdrawl button;
Withdrawl=new JButton("Withdrawl");
Withdrawl.setFont(myFont1);
Withdrawl.addActionListener(this);
Withdrawl.setFocusable(false);
Withdrawl.setBackground(new Color(112, 128, 144));
Withdrawl.setForeground(new Color(249, 246, 238));
Withdrawl.setBounds(15,250,180,50);
//defining the Transfer button;
Tranfer=new JButton("Transfer");
Tranfer.setFont(myFont1);
Tranfer.setFocusable(false);
Tranfer.setBackground(new Color(112, 128, 144));
Tranfer.setForeground(new Color(249, 246, 238));
Tranfer.setBounds(15,315,180,50);
//defining the Payment button;
Payment=new JButton("Payment");
Payment.addActionListener(this);
Payment.setFont(myFont1);
Payment.setFocusable(false);
Payment.setBackground(new Color(112, 128, 144));
Payment.setForeground(new Color(249, 246, 238));
Payment.setBounds(560,250,150,50);
//defining the Enquiry button;
Enquiry=new JButton("Enquiry");
Enquiry.setFont(myFont1);
Enquiry.addActionListener(this);
Enquiry.setFocusable(false);
Enquiry.setBackground(new Color(112, 128, 144));
Enquiry.setForeground(new Color(249, 246, 238));
Enquiry.setBounds(560,315,150,50);
//Setting the frame
frame.add(Withdrawl);
frame.add(Tranfer);
frame.add(Payment);
frame.add(Enquiry);
frame.add(bankLabel);
frame.setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e){
if (e.getSource()==Withdrawl) {
new EngWITH();
}
if (e.getSource()==Enquiry) {
new EngENQ();
}
if (e.getSource()==Payment) {
new EngPAY();
}
}
}