In this final section, we illustrate an example application that includes the utility package and makes use of the generalUtilites class. This, in turn, will take care of providing the needed JNLP runtime services to the application, even if this latter one is not launched via a JNLP file. The services provided in this test class are only illustrative.
As an example of use of this library in Listing D.11 is supplied an application that makes use of various JNLP runtime services. This class can be run seamlessly using a JNLP Client (the JNLP file is provided in Listing D.12) or launching it locally as a usual JAR file.
package com.marinilli.b2.ad; import com.marinilli.b2.ad.util.*; ...