summaryrefslogtreecommitdiffstats
path: root/src/org
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-08-15 22:39:31 +0000
committerKenneth Russel <[email protected]>2007-08-15 22:39:31 +0000
commit1029e588697467a4b35a35a6cfa1eb588ba29f13 (patch)
treea47727139ed642897543fc366c48cac499044341 /src/org
parenta8f862c63caa2a820f9d3cb1e15c69b444bcab0e (diff)
Fixed Issue 1: unable to open property file
Made failure to find directory containing deployment.properties silent.
Diffstat (limited to 'src/org')
-rw-r--r--src/org/jdesktop/applet/util/JNLPAppletLauncher.java13
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));