You are on page 1of 1

import java.applet.

*;
import java.awt.*;
/*<applet code="controls" width=300 height=500></applet>*/
class controls extends Applet
{
public void init()
{
Button b1,b2;
TextArea t1;
Checkbox c1,c2,c3;
b1=new Button("UPLOAD");
b2=new Button("Download");
t1=new TextArea("work hard to win the life"+" it gives you success");
c1=new Checkbox("Cricket");
c2=new Checkbox("football");
c3=new Checkbox("basketball");
add(b1);
add(b2);
add(t1);
add(c1);
add(c2);
add(c3);
}
}

You might also like