Java Reference
In-Depth Information
L ISTING 13.5 Continued
AboutTableModel atm = new AboutTableModel(data,columnNames);
setModel(atm);
}
/**
* inner class for table model
*/
private static class AboutTableModel extends DefaultTableModel {
public AboutTableModel(Vector d, Vector c) {
super(d,c);
}
public boolean isCellEditable(int row, int col) {
return false;
}
}
}
The list of all application modules and their description is available through the AboutDialog
class (lines 30-32 in Listing 13.4) using the system properties set in the main JNLP file (lines
27-28 in Listing 13.1). Note that thanks to the support library discussed as follows (used by
the GeneralUtilites class) the same mechanism is available to normal applications as well, as
will be explained in Appendix D, “A JNLP Utility Library”.
Finally, in Listing 13.6, the custom installer we used to take control of the whole application
installation is listed. It can be modified to perform the installation of optional packages or
other special resources, as suggested at the beginning of this chapter.
L ISTING 13.6 The Installer Class
package com.marinilli.b2.c13;
import javax.jnlp.*;
import com.marinilli.b2.ad.util.*;
/**
* Chapter 13 - textuale installer
* @author Mauro Marinilli
* @version 1.0
*/
public class Installer {
ExtensionInstallerService eis;
/**
Search WWH ::




Custom Search