Home » » Applet Window Toolkit in Java Program

Applet Window Toolkit in Java Program

Applet Window Toolkit in Java Program

Applet Window Toolkit in Java Program

Applet Window Toolkit in Java Program

import java.applet.*;
import java.awt.*;
public class Myawt extends Applet;
{
Label l1,l2,l3,l4;
TextField t1,t2;
Button b1;
List L;
Checkbox c1,c2,c3,c4;
Choice cho;
Checkbox Group g;
public void init()
{
l1=new Label("name");
l2=new Label("password");
l3=new Label("Permanent employees");
l4=new Label("Gender");
t1=new TextField(20);
t2=new TextField(30);
t2.setEchoChar('@');
g=new CheckboxGroup();
c1=new Checkbox("male",true,g);
c2=new Checkbox("female",false,g);
c3=new Checkbox("Training staff");
c4=new Checkbox("Exp staff");
cho=new Choice()
b1=new Button("Click");
l=new List(3,true);
l.add("nithya");
l.add("anitha");
l.add("saranya");
cho.add("head Office");
cho.add("branch office");
add(l1);
add(l2);
add(t1);
add(t2);
add(b1);
add(l3);
add(l);
add(l4);
add(c1);
add(c3);
add(c2);
add(c4);
add(cho);
}
}
/*<applet code="Myawt.class" width=200 height=200></appler>*/

0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g