import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class but1 extends Applet
{
Button b1,b2,b3;
public void init()
{
b1 = new Button("Submit");
b2 = new Button("Clear");
b3 = new Button("Exit");
add(b1);
add(b2);
add(b3);
}
}
/* <body>
<applet code = "but1.class" height = 250 width = 250>
</applet>
</body> */Java
Java Applet - Button Demo

Written by
View ProfileSenthilvelan Sambamoorthy
Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.
