-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathawt.java
More file actions
37 lines (32 loc) · 919 Bytes
/
Copy pathawt.java
File metadata and controls
37 lines (32 loc) · 919 Bytes
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
import java.awt.*;
import java.applet.*;
public class awt
{
public static void main(String args[])
{
Frame f=new Frame("Itz Abhii's Registaration Form:");
Label l=new Label("Name:");
Label l1=new Label(" ");
TextField tf=new TextField(12);
TextField af=new TextField(12);
Label k=new Label("Sec:");
Label l2=new Label(" ");
Button c=new Button("SUBMIT");
Label l3=new Label(" ");
Button d=new Button("RE-ENTER");
f.add(l);
f.add(tf);
l.setBounds(20,45,70,20);
k.setBounds(20,45,70,20);
f.setBackground(Color.red);
f.setLayout(new FlowLayout());
f.setSize(400,400);
f.setVisible(true);
f.add(k);
f.add(af);
f.add(tf);
f.add(tf);
f.add(c);
f.add(d);
}
}