-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNagad.java
More file actions
136 lines (105 loc) · 3.96 KB
/
Nagad.java
File metadata and controls
136 lines (105 loc) · 3.96 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
import java.awt.*;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import javax.swing.ImageIcon;
public class Nagad extends JFrame {
private JLabel Amount;
private JButton closebutton;
private JTextField email;
public static JLabel AmountNumber;
private JCheckBox jCheckBox1;
private JLabel jLabel1;
private JLabel marchant;
private JLabel marchantname;
private JButton probutton;
private JLabel word;
private JLabel box;
private Container c;
private JLabel name;
public Nagad() {}
public void Na(){
name=new JLabel();
jCheckBox1 = new JCheckBox();
probutton = new JButton();
closebutton = new JButton();
email = 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(email);
email.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);
}
public static void main(String args[]) {
new Nagad();
}
}