Develop a program to create page for collage admission in Java Applet

/*
<applet code="Today" width=300 height=300></applet>
*/
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Today extends Applet
{
TextField Name,Lname,Message;
public void init()
{

Label l1,l2,l3;
l1=new Label("Name",Label.CENTER);
l2=new Label("Lname",Label.CENTER);
l3=new Label("Message",Label.CENTER);
TextArea area=new TextArea();
Name=new TextField(20);
Lname=new TextField(20);
add(l1);
add(Name);
add(l2);
add(Lname);
add(l3);
add(area);
l1.setBounds(10,30,90,20);
l2.setBounds(10,50,90,20);
        Name.setBounds(100,30,90,20);
        Lname.setBounds(100,55,90,20);
l3.setBounds(10,70,90,20);
area.setBounds(100,75,90,40);
CheckboxGroup c=new CheckboxGroup();
Checkbox c1=new Checkbox("Male",c,false);
Checkbox c2=new Checkbox("Female",c,false);
c1.setBounds(100,120,50,20);
c2.setBounds(150,120,90,20);
add(c1);
add(c2);
Checkbox c3=new Checkbox("C");
Checkbox c4=new Checkbox("C++");
Checkbox c5=new Checkbox("Java");
c3.setBounds(100,150,100,30);
c4.setBounds(100,170,100,30);
c5.setBounds(100,190,100,30);
add(c3);
add(c4);
add(c5);
setLayout(null);

}
public void paint(Graphics g)
{
repaint();
}


}

Output:



Comments