Applet Basics - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Applet Basics

Description:

Parameters are passed to Applets with the PARAM tag in the HTML, PARAM NAME=xx VALUE=XX ... to Java Programming - Applet Basics. 7. Storing Applets in jar ... – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 9
Provided by: patrick99
Category:
Tags: applet | basics | html

less

Transcript and Presenter's Notes

Title: Applet Basics


1
Applet Basics
2
What well cover
  • The difference between Applets and applications
  • How Applets work
  • The ltApplet gt tag
  • Passing parameters
  • Storing Applets in jar files

3
Applets vs. Applications
  • Appications run standalone, Applets run in
    browsers
  • Applets run in a sandbox that controls access
    to system resources
  • Applets have access to structures provided by the
    browser

4
How Applets work
  • Browser versions of Java lag behind the released
    versions of the JDK
  • Java Applets extend from java.applet.Applet
  • The jvm running in the Browser will directly call
    certain methods if they exist init(),
    start(),stop(),destroy()

5
The ltAppletgt tag
  • The basic format is ltAPPLET CODEX WIDTH99
    HEIGHT99gtlt/APPLETgt
  • ALIGN attribute
  • HSPACE and VSPACE
  • CODEBASE
  • ARCHIVES

6
Passing parameters
  • Parameters are passed to Applets with the PARAM
    tag in the HTML, ltPARAM NAMExx VALUEXX
  • In the Applets .java file use the
    getParameter(XX) to retrieve the contents of
    the PARAM tag

7
Storing Applets in jar files
  • Browsers that support version 1.1 of Java can use
    Jar files.
  • Jar files are Java Archive Files, combinations of
    multiple class files and a manifest.
  • Jar files are created using the jar command

8
What we covered
  • Applets vs Applications
  • Applet workings
  • The ltApplet gt tag
  • Parameters
  • Jar files
Write a Comment
User Comments (0)
About PowerShow.com