0% found this document useful (0 votes)
15 views3 pages

pr1 2-1

Uploaded by

seemakasture75
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

pr1 2-1

Uploaded by

seemakasture75
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

Practical 1.

2
import java.awt.*;

public class shubhs1 extends Frame{

TextField name,mail,pass;

TextArea Address;

Label l1,l2,l3,l4;

Button b1;

shubhs1()

setLayout(new FlowLayout());

name = new TextField(10);

mail = new TextField(20);

pass = new TextField(10);

Address = new TextArea(5,20);

l1 = new Label("enter name:");

l2 = new Label("enter mail");

l3 = new Label("enter password:");

l4 = new Label("Enter Address:");

b1 = new Button("Submit");

add(l1);

add(name);

add(l2);

add(mail);
add(l3);

add(pass);

add(l4);

add(Address);

add(b1);

setTitle("MyFrame");

setSize(500,400);

setVisible(true);

public static void main(String args[])

new shubhs1();

Output:

You might also like