Java Reference
In-Depth Information
L ISTING D.11 Continued
/**
* Appendix D - A test class
*
* @author Mauro Marinilli
* @version 1.0
*/
public class Test {
/**
* run the test
*/
public Test() {
GeneralUtilities.getInstance();
System.out.println(“title= “+System.getProperty(“title”));
System.out.println(“hello= “+GeneralUtilities.getMsg(“hello”));
try {
persExample();
fileExample();
printExample();
clipboardExample();
GeneralUtilities.getBasicService().showDocument
(new URL(“http://server”));
System.exit(0);
} catch (Exception ex) {
System.out.println(“test “+ex);
}
}
private void persExample(){
PersistenceService ps =
(PersistenceService)GeneralUtilities.getService
(“javax.jnlp.PersistenceService”);
try {
Search WWH ::




Custom Search