-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBkash.java
More file actions
140 lines (105 loc) · 3.9 KB
/
Bkash.java
File metadata and controls
140 lines (105 loc) · 3.9 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.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Bkash extends JFrame {
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 Bkash() {
}
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(Bkash.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 static void main(String args[]) {
new Bkash();
}
}