Java Reference
In-Depth Information
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<property name="jnlp.packEnabled" value="true"/>
<property name="jnlp.versionEnabled" value="true"/>
<extension name="JavaFX Runtime"
href="http://dl.javafx.com/javafx-rt.jnlp"/>
<jar href="NasaImageBrowser.jar" main="true"/>
</resources>
<applet-desc name="NasaImageBrowser"
main-class="com.sun.javafx.runtime.adapter.Applet"
width="500" height="500">
<param name="MainJavaFXScript"
value="nasaimagebrowser.Main">
</applet-desc>
</jnlp>
<jnlp> codebase Property: In the main <jnlp> tag, codebase is an optional
property that tells the system to locate any resources defined in the JNLP file. If the
codebase property is not specified, the JNLP file inherits the codebase from the
HMTL document. The recommendation for the codebase property when a JNLP is
used with an applet is either to not specify one in the JNLP file so that the code-
base is inherited from the HTML file or to specify an absolute codebase . By not
specifying a codebase , the JNLP file is more portable when moving it from one
server location to the next. The NetBeans IDE for JavaFX generates an absolute
codebase property within the <jnlp> tag, so when placing the files into produc-
tion, it either has to be changed or removed.
<information>
The <information> element identifies the application and its source. The key
element under <information> is <offline-allowed> . If this is set, the applet
can be run when the system is off the network. When the system is connected to
the network, the applet framework will automatically check for updates. If
Search WWH ::




Custom Search