import java.awt.*;
import java.awt.event.*;
class RegistrationForm extends Frame
{
   RegistrationForm()
   {  
    //System.setProperty("java.awt.headless","false");
    Frame f=new Frame();
    setSize(1000,600);
    setLayout(null);
    setVisible(true);
    
    Label lHeader=new Label("Student Registration Form");
    lHeader.setBounds(250,40,300,50);
    f.add(lHeader);
    Label lName=new Label("Student Name");
    lName.setBounds(100,15,20,10);
    f.add(lName);
    TextField txtName=new TextField();
    txtName.setBounds(200,20,20,30);
    f.add(txtName);
    Label lRollno=new Label("Roll No");
    lRollno.setBounds(300,30,45,10);
    f.add(lRollno);
    TextField txtRollno=new TextField();
    txtRollno.setBounds(350,35,40,20);
    f.add(txtRollno);
    Label lGender=new Label("Gender");
    lGender.setBounds(400,40,40,30);
    f.add(lGender);
    CheckboxGroup cbg=new CheckboxGroup();
    Checkbox checkMale=new Checkbox("male",cbg,false);
    checkMale.setBounds(300,30,25,13);
    f.add(checkMale);
    Checkbox checkFemale=new Checkbox("female",cbg,true);
    checkFemale.setBounds(300,30,25,13);
    f.add(checkFemale);
    Label lCourse=new Label("Course");
    lCourse.setBounds(300,40,40,30);
    f.add(lCourse);
    Checkbox Course1=new Checkbox("MCA");
    Course1.setBounds(400,350,100,50);
    f.add(Course1);
    Checkbox Course2=new Checkbox("MSC");
    Course2.setBounds(500,350,100,50);
    f.add(Course2);
    Checkbox Course3=new Checkbox("MBA");
    Course3.setBounds(600,350,100,50);
    f.add(Course3);
    Checkbox Course4=new Checkbox("Others");
    Course4.setBounds(700,350,100,50);
    f.add(Course4);
    Label lAddress=new Label("Address");
    lAddress.setBounds(250,400,150,30);
    f.add(lAddress);
    TextArea txtAddress=new TextArea();
    txtAddress.setBounds(400,400,400,100);
    f.add(txtAddress);
    Button bSubmit=new Button("Submit");
    bSubmit.setBounds(600,600,600,150);
    f.add(bSubmit);
   
    this.addWindowListener(new WindowAdapter()
    {
        public void windowClosing(WindowEvent we)
        {
            System.exit(0);
        }
    });
   }
   
}
class RegistrationForm1
{
    public static void main(String args[])
    {
        RegistrationForm f1=new RegistrationForm();
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: