From 1029e588697467a4b35a35a6cfa1eb588ba29f13 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 15 Aug 2007 22:39:31 +0000 Subject: Fixed Issue 1: unable to open property file Made failure to find directory containing deployment.properties silent. --- src/org/jdesktop/applet/util/JNLPAppletLauncher.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/org/jdesktop') 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)); -- cgit v1.2.3