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
Hello World program using Applet in Java
Alagunila Meganathan
Aug 02
2016
Code
790
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
HelloWorldApplet.rar
import
java.applet.Applet;
import
java.awt.*;
import
java.awt.event.*;
public
class
HelloWorldApplet
extends
Applet{
public
static
void
main(String[] args){
Frame frame =
new
Frame(
"Roseindia.net"
);
frame.setSize(
400
,
200
);
Applet app =
new
HelloWorldApplet();
frame.add(app);
frame.setVisible(
true
);
frame.addWindowListener(
new
WindowAdapter(){
public
void
windowClosing(WindowEvent e){
System.exit(
0
);
}
});
}
public
void
paint(Graphics g){
g.drawString(
"Hello World!"
,
200
,
100
);
}
}
Java
Applet