0% found this document useful (0 votes)
23 views

National University of Modern Languages

The document discusses the National University of Modern Languages in Islamabad. It provides information on the university and its programs for language learning.

Uploaded by

Arman Afaq
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

National University of Modern Languages

The document discusses the National University of Modern Languages in Islamabad. It provides information on the university and its programs for language learning.

Uploaded by

Arman Afaq
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

NATIONAL UNIVERSITY OF MODERN LANGUAGES

Submitted by: Shanila Afaq (11769)


Submitted to: Miss Bushra khan
Class: BSSE 2 A
Assignment no: 4

NATIONAL UNIVERSITY OF MODERN LANGUAGES


ISLAMABAD

11th, December, 2018


Question 1
Create a Registration form using AWT. It should have user details fields that includes Name,
Password, Email and contact number and it should also have a register button.
Program:

package javaapplication46;
import java.awt.*;
class reg extends Frame{
reg(String s){
super(s);
GridLayout gl=new GridLayout(6,1);
setLayout(gl);
Label l =new Label("NAME");
add(l);
TextField t=new TextField("10");
add(t);
Label l4 =new Label("GENDER");
add(l4);
TextField t4=new TextField("10");
add(t4);
Label l1 =new Label("PASSWORD");
add(l1);
TextField t1=new TextField("10");
add(t1);
Label l2 =new Label("E-MAIL");
add(l2);
TextField t2=new TextField("10");
add(t2);
Label l3 =new Label("PHONE NUMBER");
add(l3);
TextField t3=new TextField("10");
add(t3);
Button b=new Button("REGISTER");
add(b);
setSize(400,400);
setLocation(300,300);
setBackground(Color.white);
setForeground(Color.black);
setVisible(true);
setLayout(null);
}
}
public class JavaApplication46 {
public static void main(String[] args) {
reg r=new reg("REFISTERATION FORM");
}
}

Output:

You might also like