The following is an example on how to use JMathLib as a java applet.
The basic java applet is called using the class
jmathlib.ui.applet.JMathLibGUI.class
.
The following code is an example for usage in mozilla.
<applet CODE = "jmathlib.ui.applet.JMathLibGUI.class" CODEBASE = "bin" ARCHIVE = "JMathLibSmallApplet.jar" WIDTH = "700" HEIGHT = "400" ALIGN = "middle" VSPACE = "0" HSPACE = "0" > <PARAM NAME="startup" VALUE = "plot(rand(2,30))"> <PARAM NAME="fgcolor" VALUE = "ff00ff"> <PARAM NAME="bgcolor" VALUE = "f64033"> </applet>
There are some parameters in order to configure the applet.
Use the parameter startup
to specify the first command
which should be executed after the JMathLib applet has been started.
(e.g. <PARAM NAME="startup" VALUE="plot(rand(2,30))">
will plot a figure with two rows of random numbers.)
Use the parameter fgcolor
to specify the forground color
(basically the color of the letters) in JMathLib's workspace. The color
is coded as rgb
-values, please use hex-notation
(e.g. 2200ff
).
Use the parameter bgcolor
to specify the background color
in JMathLib's workspace. The color
is coded as rgb
-values, please use hex-notation
(e.g. 2200ff
).