| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
<html> |
| 6 |
<body> |
| 7 |
This is the NervousText applet in javascript: |
| 8 |
<applet archive="js.jar" code=NervousText width=200 height=50 > |
| 9 |
</applet> |
| 10 |
|
| 11 |
<hr> |
| 12 |
The test assumes that applet code is generated with: |
| 13 |
<pre> |
| 14 |
java -classpath js.jar org.mozilla.javascript.tools.jsc.Main \ |
| 15 |
-extends java.applet.Applet \ |
| 16 |
-implements java.lang.Runnable \ |
| 17 |
NervousText.js |
| 18 |
</pre> |
| 19 |
and the resulting 2 classes, NervousText.class extending java.applet.Applet and implementing java.lang.Runnable and NervousText1.class which represents compiled JavaScript code, are placed in the same directory as NervousText.html. |
| 20 |
<p> |
| 21 |
The test also assumes that js.jar from Rhino distribution is available in the same directory. |
| 22 |
</body> |
| 23 |
</html> |