-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPaymentOperation.java
More file actions
223 lines (180 loc) · 7.25 KB
/
PaymentOperation.java
File metadata and controls
223 lines (180 loc) · 7.25 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class PaymentOperation extends JFrame implements iBkash,iNagad{
private JLabel Amount;
private JButton closebutton;
public static JTextField no;
public static JLabel AmountNumber;
private JCheckBox jCheckBox1;
private JLabel jLabel1;
private JLabel marchant;
private JLabel marchantname;
private JLabel name;
private JButton probutton;
private JLabel word;
private JLabel box;
private Container c;
public void bk(){
c=this.getContentPane();
c.setBackground(Color.RED);
name=new JLabel();
jCheckBox1 = new JCheckBox();
probutton = new JButton();
closebutton = new JButton();
no = new JTextField();
marchant = new JLabel();
marchantname = new JLabel();
Amount = new JLabel();
AmountNumber = new JLabel();
word = new JLabel();
jLabel1 = new JLabel();
box = new JLabel();
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setLayout(null);
jCheckBox1.setFont(new Font("Inter", Font.BOLD, 14));
add(jCheckBox1);
jCheckBox1.setBounds(110, 562, 18, 14);
name.setBounds(250,100,200,30);
name.setText("bkash");
name.setFont(new Font("Arial", Font.BOLD, 38));
add(name);
box.setFont(new Font("Inter", Font.BOLD, 14));
box.setForeground(new Color(255, 255, 255));
box.setText("I agree to the terms and conditions");
add(box);
box.setBounds(140, 560, 310, 22);
probutton.setFont(new Font("Inter", Font.PLAIN, 14));
probutton.setText("PROCEED");
add(probutton);
probutton.setBounds(150, 630, 130, 25);
probutton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
Bkashpin b=new Bkashpin();
b.AmountNumber.setText(PaymentOperation.AmountNumber.getText());
b.setVisible(true);
setVisible(false);
}});
closebutton.setFont(new Font("Inter", Font.PLAIN, 14));
closebutton.setText("CLOSE");
add(closebutton);
closebutton.setBounds(330, 630, 100, 25);
closebutton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
System.exit(0);
}});
add(no);
no.setBounds(70, 470, 450, 40);
marchant.setFont(new Font("Inter", Font.BOLD, 14));
marchant.setForeground(new Color(255, 255, 255));
marchant.setText("Merchant :");
add(marchant);
marchant.setBounds(160, 210, 120, 30);
// marchantname.setFont(new Font("Inter", Font.BOLD, 14));
marchantname.setForeground(new Color(255, 255, 255));
marchantname.setText("American International School");
c.add(marchantname);
marchantname.setBounds(290, 220, 190, 18);
Amount.setFont(new Font("Inter", Font.BOLD, 14));
Amount.setForeground(new Color(255, 255, 255));
Amount.setText("Amount :");
add(Amount);
Amount.setBounds(160, 260, 120, 18);
AmountNumber.setBorder(null);
AmountNumber.setFont(new Font("Inter", Font.BOLD, 18));
AmountNumber.setForeground(new Color(255, 255, 255));
add(AmountNumber);
AmountNumber.setBounds(300, 260, 100, 18);
word.setFont(new Font("Inter", Font.PLAIN, 14));
word.setForeground(new Color(255, 255, 255));
word.setText("Your bKash account number");
add(word);
word.setBounds(190, 420, 210, 40);
pack();
setSize(615, 800);
setResizable(false);
setVisible(true);
setLocationRelativeTo(null);
}
public void Na(){
name=new JLabel();
jCheckBox1 = new JCheckBox();
probutton = new JButton();
closebutton = new JButton();
no = new JTextField();
marchant = new JLabel();
marchantname = new JLabel();
Amount = new JLabel();
AmountNumber = new JLabel();
word = new JLabel();
jLabel1 = new JLabel();
box = new JLabel();
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLayout(null);
c=this.getContentPane();
c.setBackground(Color.orange);
name.setBounds(250,100,200,90);
name.setText("Nagad");
name.setFont(new Font("Arial", Font.BOLD, 38));
add(name);
jCheckBox1.setFont(new Font("Inter", Font.PLAIN, 14));
add(jCheckBox1);
jCheckBox1.setBounds(110, 562, 18, 14);
box.setFont(new Font("Inter", Font.PLAIN, 14));
box.setForeground(new Color(255, 255, 255));
box.setText("I agree to the terms and conditions");
add(box);
box.setBounds(140, 560, 310, 22);
probutton.setFont(new Font("Inter", Font.PLAIN, 14));
probutton.setText("PROCEED");
add(probutton);
probutton.setBounds(150, 630, 130, 25);
probutton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
Nagapin b=new Nagapin();
b.AmountNumber.setText(Nagad.AmountNumber.getText());
b.setVisible(true);
setVisible(false);
}});
closebutton.setFont(new Font("Inter", Font.PLAIN, 14));
closebutton.setText("CLOSE");
add(closebutton);
closebutton.setBounds(330, 630, 100, 25);
closebutton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
System.exit(0);
}});
add(no);
no.setBounds(70, 470, 450, 40);
marchant.setFont(new Font("Inter", Font.BOLD, 14));
marchant.setForeground(new Color(255, 255, 255));
marchant.setText("Merchant :");
add(marchant);
marchant.setBounds(160, 320, 120, 30);
//marchantname.setFont(new Font("Inter", Font.BOLD, 14));
marchantname.setForeground(new Color(255, 255, 255));
marchantname.setText("American International School");
add(marchantname);
marchantname.setBounds(290, 325, 190, 18);
Amount.setFont(new Font("Inter", Font.BOLD, 14));
Amount.setForeground(new Color(255, 255, 255));
Amount.setText("Amount :");
add(Amount);
Amount.setBounds(160, 380, 120, 18);
AmountNumber.setFont(new Font("Inter", Font.BOLD, 14));
AmountNumber.setForeground(new Color(255, 255, 255));
add(AmountNumber);
AmountNumber.setBounds(300, 380, 100, 18);
word.setFont(new Font("Inter", Font.PLAIN, 14));
word.setForeground(new Color(255, 255, 255));
word.setText("Your nagad account number");
add(word);
word.setBounds(190, 420, 210, 40);
pack();
setSize(615, 800);
setResizable(false);
setVisible(true);
setLocationRelativeTo(null);
}
}