Incorporation of the JME applet into an HTML page
Recommended HTML code is
<applet code="JME.class" name="JME" archive="JME.jar" width="360" height="335">
<param name="options" value="list of keywords">
Enable Java in your browser !
If you are updating from an older version of JME please note that you have to change JME.zip to JME.jar in the applet's archive tag.
You can modify width and height parameters according to your requirements, or to
add the codebase parameter.
The warning "Enable Java ..." appears only when Java is not enabled in the users web browser.
By using the parameter "options" you can modify some editor features by placing respective keywords into the value field. See description of function JME.options() for a list of recognized options.
The parameter tag may look for example like this
<param name="options" value="query,nohydrogens">
If you want to start the applet directly with a molecule in it, you can do this by providing one of the following lines in the applet tag:
<param name="jme" value="molecule in the jme format">
<param name="mol" value="MDL mol file or rxn file">
When supplying MDL file as a parameter, it is necessary to add the | character at the end of each line (HTML removes endline characters and without | the JME parser would not be able to process the file correctly).
Another possibility is to read molecule by JME functions readMolecule or readMolFile, launched by the onLoad event handler.
Both these possibilities are illustrated in example3.
When using MDL mol or rxn files as function parameters, take care to fulfill exactly the MDL mol/rxn file format conventions.
Support of MDL mol and rxn files is new in this version of JME applet, some bugs are therefore possible. Help to improve JME by reporting bugs - but first check your MDL file format :-) .
The editor is compiled under Java 1.2, but uses only Java 1.0 features, so it should work also with older versions of browsers.
The JME editor may be incorporated easily into other Java programs, see for example its usage as a structure input in an interactive property prediction applet.
The JME editor is able to run also as an application (in a standalone mode without a browser) provided you have Java runtime environment available. Start the program with
java JME "list of keywords"