TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Java Applet - Button Demo
Senthilvelan Sambamoorthy
Aug 20
2016
Code
748
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
but1.rar
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 Applet
Button Demo