diff options
author | Kenneth Russel <[email protected]> | 2007-08-15 22:39:31 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-08-15 22:39:31 +0000 |
commit | 1029e588697467a4b35a35a6cfa1eb588ba29f13 (patch) | |
tree | a47727139ed642897543fc366c48cac499044341 | |
parent | a8f862c63caa2a820f9d3cb1e15c69b444bcab0e (diff) |
Fixed Issue 1: unable to open property file
Made failure to find directory containing deployment.properties
silent.
-rw-r--r-- | src/org/jdesktop/applet/util/JNLPAppletLauncher.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java index f453450..956e148 100644 --- a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java +++ b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java @@ -37,8 +37,8 @@ * intended for use in the design, construction, operation or * maintenance of any nuclear facility. * - * $Revision: 1.22 $ - * $Date: 2007/07/26 20:18:29 $ + * $Revision: 1.23 $ + * $Date: 2007/08/15 22:39:31 $ * $State: Exp $ */ @@ -2373,7 +2373,7 @@ public class JNLPAppletLauncher extends Applet { } //---------------------------------------------------------------------- - // Helper routines for adding + // Helper routines for adding -Dsun.java2d.noddraw=true to deployment.properties // Get a "boolean" parameter private boolean getBooleanParameter(String parameterName) { @@ -2475,17 +2475,14 @@ public class JNLPAppletLauncher extends Applet { File propsDir = new File(getDeploymentPropsDir()); if (!propsDir.exists()) { // Don't know what's going on or how to set this permanently - JOptionPane.showMessageDialog(null, - "Unable to open properties file", - "Update properties failed", - JOptionPane.WARNING_MESSAGE); return; } File propsFile = new File(propsDir, "deployment.properties"); - if (!propsFile.exists()) + if (!propsFile.exists()) { // Don't know what's going on or how to set this permanently return; + } Properties props = new Properties(); InputStream input = new BufferedInputStream(new FileInputStream(propsFile)); |