Java Reference
In-Depth Information
The following table shows the non-code resources used in our application and the belonging
JNLP resource (that is JAR file).
Resource
JAR File
Application icon
textuale.jar
Other special icons
textuale.jar ; draw.jar
Support properties files
textuale.jar
Java Swing standard icons
jlfgr-1_0.jar
The support properties files are used by the utility library that will be introduced in the “A
JNLP Utility Library” section right before the chapter's summary.
Now, let's see the source code.
Implementation
The code shown here is available for download at the Companion Web site for this topic.
Let's begin with the main JNLP file, (namely textuale-main.jnlp ) shown in
Listing 13.1.
13
L ISTING 13.1 The application main JNLP file
<?xml version=”1.0” encoding=”UTF-8”?>
<jnlp spec=”1.0+”
codebase=”http://server/b2/c13/”
href=”textuale-main.jnlp”>
<information>
<title>Textuale Application</title>
<vendor>Mauro's Workshop</vendor>
<homepage href=”home.html”/>
<description kind=”short”>A simple expandable Java text
editor</description>
<description kind=”tooltip”>A text Editor</description>
<icon href=”textuale-big.gif”/>
<offline-allowed/>
</information>
<security><all-permissions/></security>
<resources>
<j2se version=”1.3+” />
<extension
name=”Installer”
href=”textuale-ext.jnlp”>
</extension>
Search WWH ::




Custom Search