More Related Content Similar to Application Form (20) Application Form2. JAVA source Code
import java.awt.*;
import java.applet.*;
public class applicationform extends Applet
{
public void init()
{
setBackground(Color.cyan);
setForeground(Color.blue);
setLayout(null);
Label l=new Label("IIMT College of Engineering",Label.CENTER);
l.setBounds(500,10,300,20);
add(l);
Label l1=new Label("Enter your Name",Label.LEFT);
l1.setBounds(150,40,100,20);
add(l1);
TextField t=new TextField();
t.setBounds(300,40,200,20);
add(t);
Label l2=new Label("Gender",Label.LEFT);
l2.setBounds(150,70,50,20);
add(l2);
CheckboxGroup cbg= new CheckboxGroup();
Checkbox cg1= new Checkbox("MALE",cbg,false);
Checkbox cg2= new Checkbox("FEMALE",cbg,false);
cg1.setBounds(300,70,50,20);
add(cg1);
cg2.setBounds(380,70,100,20);
add(cg2);
Label l3=new Label("Date of Birth:",Label.LEFT);
l3.setBounds(150,100,100,20);
add(l3);
TextField t1=new TextField();
t1.setBounds(300,100,100,20);
add(t1);
Label l4=new Label("Place of Birth:",Label.LEFT);
l4.setBounds(150,130,100,20);
add(l4);
TextField t2=new TextField();
By Kapil Kr. Pandit
3. JAVA source Code
t2.setBounds(300,130,120,20);
add(t2);
Label l5=new Label("State:",Label.LEFT);
l5.setBounds(195,160,100,20);
add(l5);
TextField t3=new TextField();
t3.setBounds(300,160,100,20);
add(t3);
Label l6=new Label("country:",Label.LEFT);
l6.setBounds(450,160,70,20);
add(l6);
TextField t4=new TextField();
t4.setBounds(540,160,100,20);
add(t4);
Label l7=new Label("Mother Name:",Label.LEFT);
l7.setBounds(150,190,100,20);
add(l7);
TextField t5=new TextField();
t5.setBounds(300,190,200,20);
add(t5);
Label l8=new Label("Father Name:",Label.LEFT);
l8.setBounds(150,220,100,20);
add(l8);
TextField t6=new TextField();
t6.setBounds(300,220,200,20);
add(t6);
Label l9=new Label("Education Qualification:",Label.LEFT);
l9.setBounds(150,250,200,20);
add(l9);
Checkbox c1=new Checkbox ("10th");
Checkbox c2=new Checkbox ("12th");
Checkbox c3=new Checkbox ("Graduate");
Checkbox c4=new Checkbox ("Post Graduate");
Checkbox c5=new Checkbox ("Doc.");
Checkbox c6=new Checkbox ("Post Doc.");
c1.setBounds(360,250,70,20);
c2.setBounds(470,250,70,20);
c3.setBounds(540,250,70,20);
By Kapil Kr. Pandit
4. JAVA source Code
c4.setBounds(360,280,100,20);
c5.setBounds(470,280,50,20);
c6.setBounds(540,280,100,20);
add(c1);
add(c2);
add(c3);
add(c4);
add(c5);
add(c6);
Label l10=new Label("Mobile No.:");
l10.setBounds(150,310,100,20);
add(l10);
TextArea ta=new TextArea ();
ta.setText("+91");
ta.setBounds(300,310,50,20);
add(ta);
ta.setEditable(false);
TextField t7=new TextField(10);
t7.setBounds(355,310,100,20);
add(t7);
Label l11=new Label("Write a Short Essay on any Topic:",Label.LEFT);
l11.setBounds(150,340,200,20);
add(l11);
TextField t8=new TextField();
t8.setBounds(355,340,600,130);
add(t8);
Label l12=new Label("Choose Branch");
l12.setBounds(150,480,120,30);
add(l12);
Choice branch=new Choice();
branch.setBounds(300,480,100,30);
add(branch);
branch.add("CSE");
branch.add("IT");
branch.add("ME");
branch.add("EC");
branch.add("EI");
Label l13=new Label("Subject Taken");
By Kapil Kr. Pandit
5. JAVA source Code
l13.setBounds(150,520,100,30);
add(l13);
List subject=new List(3,true);
subject.setBounds(300,520,400,50);
add(subject);
subject.add("Operating System");
subject.add("Design and Analysis of Algorithms");
subject.add("Object Oriented Techniques");
subject.add("Computer Graphics");
subject.add("Graph Theory");
subject.add("Engg. Managerial Economics");
subject.add("...................................................................");
subject.add("Addition subjects");
subject.add("...................................................................");
subject.add("Computer Network");
subject.add("Software Engineering");
subject.add("Compiler Design");
Button b1=new Button("Submit");
Button b2=new Button("Cancel");
b1.setBounds(450,580,50,20);
b2.setBounds(510,580,50,20);
add(b1);
add(b2);
Label l14=new Label("Terms & Conditions:");
l14.setBounds(150,610,150,30);
add(l14);
TextArea ta1=new TextArea (2,4);
ta1.setText("This is simple formncreate for IIMT college of Engg.nmade by KAPIL
KUMAR");
ta1.setBounds(320,610,200,70);
add(ta1);
ta1.setEditable(false);
CheckboxGroup cbg1= new CheckboxGroup();
Checkbox cg11= new Checkbox("Accept",cbg1,true);
Checkbox cg21= new Checkbox("Decline",cbg1,false);
cg11.setBounds(370,690,70,20);
add(cg11);
cg21.setBounds(450,690,70,20);
By Kapil Kr. Pandit
6. JAVA source Code
add(cg21);
Button b3=new Button("Continue......");
b3.setBounds(550,700,100,30);
add(b3);
setVisible(true);
}
}
/*<applet code="applicationform.class" width=1000 height=1000>
</applet>*/
By Kapil Kr. Pandit