Example which shows how to embed a Java applet in modern browsers.
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src/com/github/kayahr/applettest
.gitignore
.travis.yml
README.md
applettest.html
build.xml

README.md

applettest

This project is an example which shows how to embed a Java applet in modern browsers. It uses the embed tag which is now part of HTML 5 but still uses the object tag for IE because of the automatic install of the Java Runtime.

Features demonstrated in this project:

  • How to embed a Java Applet for all major browsers.
  • How to pass arguments to the applet (param tag for object and attributes for embed)
  • How to call JavaScript functions from the Java Applet.
  • How to call Java methods from JavaScript.

Useful online resources

Description how to use the object and embed tags:

http://docs.oracle.com/javase/6/docs/technotes/guides/plugin/developer_guide/using_tags.html

List of download URLs which can be used for the for the codebase and pluginspage attributes:

http://www.oracle.com/technetwork/java/javase/autodownload-140472.html

Description how the version selection mechanism works:

http://www.oracle.com/technetwork/java/javase/index-141751.html