Witshaper is the Professional (Computing Skills, English Learning and Soft Skills) Skill Development Training Center. We provide Professional IT Courses and Soft Skill Training in Dehradun to Students, Employees and organization. Who wish to pursue a career in IT Technology. Witshaper is led by a motivated team of IT experts and Soft Skill Professionals. We provide high quality trainings. Our Emphasis is on giving the practical knowledge to the students, so that they will get to know in depth and never forget what they opt, we provide to the students real learning environment. Witshaper prepares students and professionals to be the part of this growing industry. Be a part of Witshaper and get your dreams successful

Wednesday 13 May 2015

simple java applet example of adding components

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>
*/

No comments:

Post a Comment