Java Applets
Description
Easy way to include Java applets:
- create Java applet (ex. ChaosGame.class) and upload it into your wiki page
- create simple HTML page to display the applet, upload it into your wiki page but use html extension in file name, use for example xxx (ex. chaos.xxx).
- embed the HTML page into your wiki page using [[iframe]] tag
* use specific naming convention for the URL of your html file:
http://your_name.wdupload.wikidotsyndication.com/localfiles/your_page/chaos.html
Code
Simple HTML page (chaos.html):
<html> <head> <title>Chaos Game</title> </head> <body> <applet code="ChaosGame.class" height="128" width="128"></applet> </body> </html>
Code to be included in your wiki page:
[[iframe http://your_name.wikidot.com/local--files/your_page/chaos.html]]
In action
[[iframe http://snippets.wikidot.com/local--files/code:java-applets/chaos.html]]
To remove the border and so on - see Wiki syntax.
Rate this solution
If you think this solution is useful — rate it up! Or dump it otherwise.
page_revision: 11, last_edited: 1210586093|%e %b %Y, %H:%M %Z (%O ago)





Comments
Sorry to say this, but this is not going to work anymore as we fixed a bug in serving user-submitted files as HTML.
For more details see here: http://community.wikidot.com/bugs:iframe
Happy to say this, this is going to work some day.
See: http://groups.google.com/group/wikidot/browse_thread/thread/b0db300e0d02095a?hl=en
ediT:
This is only working now in IE ( 6, 7) , IE has a bug…
Sorry, but true - if you use Internet Explorer, you will see the applet working.
But this is a security bug in IE and not in wikidot.
There is a workaround as Gabrys wrote - have a look if you realy need it at the link supplied!
Or wait if you can on the secure wikidot solution…
THIS GENERAL TECHNIC IS NOW WORKING!