Embedding a Java Applet inside a Daisy document [2005-09-22]
This page contains an example Java Applet that uses Swing !
Compiled using JDK 1.5 for a target of JDK 1.2 or higher.
You may need to upgrade to the latest Java web browser plug-in version.
Java Applet source code: Example_000.java
The Daisy CMS restricts the allowed HTML mark-up tags within a Document's content. However, the include tag permits the inclusion of other HTML pages that are effectively unlimited in what they contain.
By careful choice of the directory path, refering URL and Java Applet codebase, it is simple to include a Java Applet (as above).
Now that modern browsers and the latest Java plug-in are available, it's possible to create and deploy very sophisticated interactive user interfaces ... delivered by the Daisy CMS.
- Insert an appropriate include tag in a Daisy simple document ...
- mkdir -p applet/example_000/
<html> <body> <applet code="Example_000" codebase="/applet/example_000" width="120" height="80"> Your browser doesn't support Java applets </applet> </body> </html>
javac -source 1.2 -target 1.1 Example_000.java
chmod 444 *.html *.java *.class
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseComments (0)