Program-1.
3
 // develop a program to create three Buttons with Caption OK,RESET,CANCEL
import java.awt.*;
import java.applet.*;
public class Buttons extends Applet
{
public void init()
       {
       Button o,r,c;
       o= new Button("OK");
       r= new Button("RESET"); c=
       new Button("CANCEL");
       add(o);
       add(r);
       add(c);
       }
       }
/*<applet code ="Buttons.class" width=500
height=300></applet>*/