-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminFMainAC.java
More file actions
64 lines (49 loc) · 1.53 KB
/
AdminFMainAC.java
File metadata and controls
64 lines (49 loc) · 1.53 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
import javax.swing.*;
import javax.swing.JFrame;
import java.awt.*;
public class AdminFMainAC {
public static void main(String[] args) {
AdminFMainAC1 obj = new AdminFMainAC1();
}
};
class AdminFMainAC1 extends JFrame {
public AdminFMainAC1() {
JFrame f = new JFrame("ADD CUSTOMER");
f.setVisible(true);
f.setSize(800, 550);
f.setLayout(null);
Font Font1 = new Font("Times New Roman", Font.BOLD, 15);
JLabel l1 = new JLabel("CUSTOMER USERNAME");
l1.setBounds(150, 50, 200, 50);
l1.setFont(Font1);
f.add(l1);
JTextField t1 = new JTextField(20);
t1.setBounds(450, 50, 200, 50);
f.add(t1);
JLabel l2 = new JLabel("CUSTOMER PASSWORD");
l2.setBounds(150, 150, 200, 50);
l2.setFont(Font1);
f.add(l2);
JTextField t2 = new JTextField(20);
t2.setBounds(450, 150, 200, 50);
f.add(t2);
JLabel l3 = new JLabel("PHONE NUMBER");
l3.setBounds(150, 250, 200, 50);
l3.setFont(Font1);
f.add(l3);
JTextField t3 = new JTextField(20);
t3.setBounds(450, 250, 200, 50);
f.add(t3);
JLabel l4 = new JLabel("EMAIL");
l4.setBounds(150, 350, 200, 50);
l4.setFont(Font1);
f.add(l4);
JTextField t4 = new JTextField(20);
t4.setBounds(450, 350, 200, 50);
f.add(t4);
JButton b1 = new JButton("ADD");
b1.setBounds(500, 450, 150, 50);
b1.setFont(Font1);
f.add(b1);
};
};