KEMBAR78
applet using java | PPTX
SEMINAR ON:
Kite using applet in
java
Presented By :-
Kartik Kalpande.
PRESENTED BY:
 Shubham Sable
 Kartik Kalphande
 Pratik Alaspure
 Suyog Metange
Dr P.D.Poly,Amt
CO-5G
CONTENT:-
 Introduction
 Preparing To Write Applets
 Developing And Testing In Applet
 Building APPLET CODE
 General Format Of Applet Code
 Applet Life Cycle
 Sample Code For Project
 Output Of Our Project
INTRODUCTION TO APPLET :-
 Small java programs that are primarily used
in internet computing.
 An applet can do many things such as
arithmetic operations, display graphics, play
sounds,accept user input, create animation,
and play interactive games.
 Java applets can now therefore make a
significant impact on World Wide Web.
 We can do the graphics programming using
applet
PREPARING TO WRITE APPLETS :-
For creating applets exclusively we will
need to know:
o When to use applets
o How an applets works
o What sort of features an applets has
o Where to start when we first create our
own applets
DEVELOPING AND TESTING IN APPLET:-
 write an applet code (.java file)
 Creating an executeable applet (.class file)
 Designing a Web page using HTML tags
 Preparing <APPLET> tag
 Incorporating <APPLET> tag into the webpage
 Creating HTML file
 Testing the applet code in CMD
BUILDING APPLET CODE :-
 Applet code uses two classes, APPLET &
GRAPHICS from our Java class library.
 The applet class is contained in the
java.applet package.
 Applet methods are:-
I. init()
II. start()
III. paint()
 The applet code imports java.awt package
which contains the Graphics class.
APPLET LIFE CYCLE :-
Diagram No. 1
SAMPLE CODE FOR PROJECT :-
import java.awt.*;
import java. applet.*;
public class kite extends Applet
{
public void paint(Graphics g)
{
x[]={100,50,70,130,100};
y[]={60,110,160,145,60};
g.drawPolygon(x,y,5);
}
}
OUTPUT OF PROJECT:-

applet using java

applet using java

  • 1.
    SEMINAR ON: Kite usingapplet in java Presented By :- Kartik Kalpande.
  • 2.
    PRESENTED BY:  ShubhamSable  Kartik Kalphande  Pratik Alaspure  Suyog Metange Dr P.D.Poly,Amt CO-5G
  • 3.
    CONTENT:-  Introduction  PreparingTo Write Applets  Developing And Testing In Applet  Building APPLET CODE  General Format Of Applet Code  Applet Life Cycle  Sample Code For Project  Output Of Our Project
  • 4.
    INTRODUCTION TO APPLET:-  Small java programs that are primarily used in internet computing.  An applet can do many things such as arithmetic operations, display graphics, play sounds,accept user input, create animation, and play interactive games.  Java applets can now therefore make a significant impact on World Wide Web.  We can do the graphics programming using applet
  • 5.
    PREPARING TO WRITEAPPLETS :- For creating applets exclusively we will need to know: o When to use applets o How an applets works o What sort of features an applets has o Where to start when we first create our own applets
  • 6.
    DEVELOPING AND TESTINGIN APPLET:-  write an applet code (.java file)  Creating an executeable applet (.class file)  Designing a Web page using HTML tags  Preparing <APPLET> tag  Incorporating <APPLET> tag into the webpage  Creating HTML file  Testing the applet code in CMD
  • 7.
    BUILDING APPLET CODE:-  Applet code uses two classes, APPLET & GRAPHICS from our Java class library.  The applet class is contained in the java.applet package.  Applet methods are:- I. init() II. start() III. paint()  The applet code imports java.awt package which contains the Graphics class.
  • 8.
    APPLET LIFE CYCLE:- Diagram No. 1
  • 9.
    SAMPLE CODE FORPROJECT :- import java.awt.*; import java. applet.*; public class kite extends Applet { public void paint(Graphics g) { x[]={100,50,70,130,100}; y[]={60,110,160,145,60}; g.drawPolygon(x,y,5); } }
  • 10.