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
Create a Simple Applet in JAVA
Sreenath Ks
Dec 31
2015
Code
983
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
import java.awt.*;
import java.applet.*;
/*<applet code="Animate" width=800 height=600></applet> */
public
class
Animate extends Applet
{
public
void
paint(Graphics g)
{
Image img =
new
getImage(getDocumentBase(),
"Plain.gif"
);
for
(
int
x = 0; x < 800; x++)
{
g.drawImage(img, x, 0,
null
);
try
{
Thread.sleep(20);
}
catch
(InterruptedException ie)
{}
}
}
}
JAVA
Applet in JAVA
Create Applet in JAVA