0% found this document useful (1 vote)
2K views2 pages

Program-1.3 // Develop A Program To Create Three Buttons With Caption OK, RESET, CANCEL

This program creates three buttons with the captions "OK", "RESET", and "CANCEL". It imports the necessary Java classes and defines a class called Buttons that extends Applet. The init() method creates Button objects for each caption and adds them to the applet.

Uploaded by

rohitchavan2345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
2K views2 pages

Program-1.3 // Develop A Program To Create Three Buttons With Caption OK, RESET, CANCEL

This program creates three buttons with the captions "OK", "RESET", and "CANCEL". It imports the necessary Java classes and defines a class called Buttons that extends Applet. The init() method creates Button objects for each caption and adds them to the applet.

Uploaded by

rohitchavan2345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like