Use jV applet with applet launcher

From jV
(Redirected from Use jV with applet launcher)
Jump to: navigation, search

Note: Use jV applet with object tag is more preferable.

A brief introduction to use jV in applet with applet-launcher.

Example

One way to use jV applet is to use with applet-launcher. jV after v3.6 is fully compatible with applet-launcher.

<applet
  hspace="0" vspace="0" align="middle"
  name="jVwindow" height="600" width="600"
  archive="http://jogamp.org/deployment/jogamp-current/jar/applet-launcher.jar,
           http://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar,
           http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar,
           jv4_3_1p2_signed.jar"
  code="org.pdbj.viewer.gui.GLInitJNLPAppletLauncher">
<!-- param for applet-launcher -->
  <param name="subapplet.classname" value="org.pdbj.viewer.gui.ViewerApplet">
  <param name="subapplet.displayname" value="jV applet">
  <param name="noddraw.check" value="true"/>
  <param name="noddraw.check.silent" value="true"/>
  <param name="java_arguments" value="-Dsun.java2d.noddraw=true"/>
  <param name="progressbar" value="true"/>
  <param name="jnlpNumExtensions" value="1"/>
  <param name="jnlpExtension1"
   value="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp"/>
<!-- param for jV -->
   <!-- replace the following with an appropriate URL -->
  <param name="pdbmlURL" value="http://pdbj.org/XML/all/1ash.xml.gz">
  <param name="commands" value="cartoon;color group">
</applet>

Upper part is almost same as the usual usage of applet launcher. See the applet-launcher page for details. Notice, however, that we specify org.pdbj.viewer.gui.GLInitJNLPAppletLauncher class to the code attribute rather than org.jdesktop.applet.util.JNLPAppletLauncher class to avoid an initialization problem. The latter part is for jV parameters.

Only the bold face part is specific for jV.