import java.awt.*;
import java.applet.*;
public class Applet3 extends Applet
{
Label l1,l2,l3;
Choice c1,c2;
List lst;
int i;
public void init()
{
l1=new Label("Select Train Name");
l2=new Label("Select Seats ");
l3=new Label("Cause Of Visit ");
c1=new Choice();
c1.addItem("Rajdhani Express");
c1.addItem("GT Express");
c1.addItem("Link Express");
c1.addItem("Mussoorie Express");
c1.addItem("Shatabdi Express");
c2=new Choice();
for(i=1;i<=50;i++)
c2.addItem(String.valueOf(i));
lst=new List(6);
lst.addItem("Official");
lst.addItem("Personal");
lst.addItem("Educational");
lst.addItem("Tourism");
lst.addItem("Research");
lst.addItem("WildLife");
setBackground(Color.cyan);
add(l1);
add(c1);
add(l2);
add(c2);
add(l3);
add(lst);
}
}
/*
<applet code=Applet3 height=250 width=270></applet>
*/
import java.applet.*;
public class Applet3 extends Applet
{
Label l1,l2,l3;
Choice c1,c2;
List lst;
int i;
public void init()
{
l1=new Label("Select Train Name");
l2=new Label("Select Seats ");
l3=new Label("Cause Of Visit ");
c1=new Choice();
c1.addItem("Rajdhani Express");
c1.addItem("GT Express");
c1.addItem("Link Express");
c1.addItem("Mussoorie Express");
c1.addItem("Shatabdi Express");
c2=new Choice();
for(i=1;i<=50;i++)
c2.addItem(String.valueOf(i));
lst=new List(6);
lst.addItem("Official");
lst.addItem("Personal");
lst.addItem("Educational");
lst.addItem("Tourism");
lst.addItem("Research");
lst.addItem("WildLife");
setBackground(Color.cyan);
add(l1);
add(c1);
add(l2);
add(c2);
add(l3);
add(lst);
}
}
/*
<applet code=Applet3 height=250 width=270></applet>
*/
No comments:
Post a Comment