-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathSignUpForm.java
More file actions
80 lines (61 loc) · 1.41 KB
/
SignUpForm.java
File metadata and controls
80 lines (61 loc) · 1.41 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
import java.awt.*;
import javax.swing.*;
class SignUpForm
{
TextField t1,t2,t3,t4,t5,t6;
JFrame f1;
SignUpForm()
{
f1 = new JFrame();
f1.setSize(600,600);
f1.setVisible(true);
f1.setLayout(null);
f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Label l1 = new Label("Name");
Label l2 = new Label("Phone no");
Label l3 = new Label("Email");
Label l4 = new Label("Username");
Label l5 = new Label("Password");
Label l6 = new Label("Confirm Password");
t1 = new TextField();
t2 = new TextField();
t3 = new TextField();
t4 = new TextField();
t5 = new TextField();
t6 = new TextField();
Button b1 = new Button("Back");
Button b2 = new Button("Signup");
l1.setBounds(50,50,120,30);
t1.setBounds(220,50,200,30);
l2.setBounds(50,100,120,30);
t2.setBounds(220,100,200,30);
l3.setBounds(50,150,120,30);
t3.setBounds(220,150,200,30);
l4.setBounds(50,200,120,30);
t4.setBounds(220,200,200,30);
l5.setBounds(50,250,120,30);
t5.setBounds(220,250,200,30);
l6.setBounds(50,300,120,30);
t6.setBounds(220,300,200,30);
b1.setBounds(70,400,80,30);
b2.setBounds(250,400,80,30);
f1.add(l1);
f1.add(l2);
f1.add(l3);
f1.add(l4);
f1.add(l5);
f1.add(l6);
f1.add(t1);
f1.add(t2);
f1.add(t3);
f1.add(t4);
f1.add(t5);
f1.add(t6);
f1.add(b1);
f1.add(b2);
}
public static void main(String args[])
{
new SignUpForm();
}
}