Transforming Process Safety Management: Challenges, Benefits, and Transition ...
Java applets in Hindi
1. You can download this document from www.besthinditutorials.com
Java applets
इस tutorial applets Applets web
programming इसस suggest
inheritance औ method overriding इस Java in Hindi :
Inheritance औ Java in Hindi : Method overriding tutorials ड़ स इ अ
applets
Outline
Introduction to java applets in Hindi
Life cycle of java applets in Hindi
Introduction to java applets
Applet java औ स
स . save server save औ स HTML
स स स स ड़ .
visitor स HTML load स स
load .
.class extension
स स .
. इस
स applets client side applications .
2. You can download this document from www.besthinditutorials.com
Java applets position
Life cycle of java applets
Java.applet.Applet स स ड़ . इस
स important स इ स .
init () - इस variables initialize स
स . स initialization इस स
. स स .
start()- init() automatically .
.
stop()-
.
destroy()- औ
paint()- इस
start()
java.applet.Applet औ java.awt इ ड़
.
3. You can download this document from www.besthinditutorials.com
Example
class picture extends Applet
{
public void init()
{
void setBackground(color.red);
}
public void paint(Graphics g)
{
g.drawString("Applet are for GUI",30,30);
}
}
drawString() स
coordinates show setBackground() window
background color स इस argument स
example java इ अ इस इ
इस browser open औ browser open
इस इ HTML page सस स
.
<html>
<head>
<title>applet example</applet>
</head>
<applet code="picture.class" width="300" height="300">
</applet>
4. You can download this document from www.besthinditutorials.com
</html>
java इ HTML HTML इ applet
.
java इ html इ through स स . इस
ड़ param. इस 2 attribute name औ value.
इस इस स :
Example
<html>
<head>
<title>applet example</applet>
</head>
<applet code="picture.class" width="300" height="300">
<param name=userName value=Vipin Sharma>
</applet>
</html>
इस HTML इ userName स . Java इ
इस औ स स
इस .
class userName extends Applet
{
String username;
public void start()
{
username = getParameter("userName");
}
5. You can download this document from www.besthinditutorials.com
public void paint(Graphics g)
{
g.drawString(username,30,30);
}
}
इस tutorial java applets , इस Java in
Hindi : Java event handling ढ़ स
Read more tutorials on java in Hindi at www.besthinditutorials.com