Java Reference
In-Depth Information
NetBeans IDE for JavaFX
The easiest way to do all this is to use NetBeans IDE for JavaFX. When you
build the JavaFX project with NetBeans IDE for JavaFX, these steps are done
automatically. The JAR is signed, the JNLP file is generated, and a sample
HTML page is produced that can be copied into any HTML source file.
There are some parameters to assist in this. Right-click on the NetBeans Project
and select Properties . Then click on Application . Figure 9.3 shows the NetBeans
properties window for defining applet properties.
The Name field defaults to the Project Name; you can set your company as the
Vendor, set the applet's Width and Height, mark it as Draggable, do a Self
Signed Jar file, and indicate that you want to support Pack200 Compression.
Draggable is a new applet feature that we will discuss a little later in this chapter.
Pack200 Compression allows the JAR file to be compressed to a smaller size to
minimize download time when starting the applet.
As a part of the applet security model, we need to sign the JAR file in order to
have broader permissions to run the application on the user's platform. When the
applet is first loaded, the Java Plug-in module will identify the provider of the
applet, verify the JAR file has not been tampered with, and ask the user if he
grants permission to run the applet on his platform. The JNLP deployment file
also has a security section that helps govern security permissions. The NetBeans
IDE sets this to “all-permissions.” There is more on security later in this chapter.
Figure 9.3
Applet Generation Parameters
 
Search WWH ::




Custom Search