import java.awt.*;
import java.applet.Applet;
public class UseList extends Applet
{
  	Label lb = new Label ("Select One", Label.CENTER);
  	Choice ch = new Choice ();
  	List lst = new List (3,true);
  	Button bt1 = new Button ("Submit");
  	Button bt2 = new Button ("Cancel");
  	public void init()
  	{
		ch.addItem ("Nikhil");
		ch.addItem ("Sanath");
		ch.addItem ("Praveen");
		add (lb);
		add (ch);
		lst.addItem ("Prathiba");
		lst.addItem ("Ashwini");
		lst.addItem ("Rani");
		add (lst);
		add (bt1); 
		add (bt2);
  	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers.


comments powered by Disqus




Footer1