summaryrefslogtreecommitdiff
path: root/BKUApplet/src
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-09 16:23:52 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-09 16:23:52 +0000
commitf993d336e51b9f7898aeeff2e5ae6785066d1e5b (patch)
tree3e8e976954775ec250b878bdfcdaf0eb4769efc7 /BKUApplet/src
parent61ca2c1fe936408ae1b90d52928ce0d90f9a14ac (diff)
downloadmocca-f993d336e51b9f7898aeeff2e5ae6785066d1e5b.tar.gz
mocca-f993d336e51b9f7898aeeff2e5ae6785066d1e5b.tar.bz2
mocca-f993d336e51b9f7898aeeff2e5ae6785066d1e5b.zip
demo integration beta1
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@94 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUApplet/src')
-rw-r--r--BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
index 34dd9bbd..6a781729 100644
--- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
+++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
@@ -16,9 +16,12 @@
*/
package at.gv.egiz.bku.online.applet;
+import java.net.MalformedURLException;
import java.util.Locale;
import java.util.ResourceBundle;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import javax.net.ssl.HttpsURLConnection;
import javax.swing.JApplet;
@@ -27,6 +30,7 @@ import org.apache.commons.logging.LogFactory;
import at.gv.egiz.bku.gui.BKUGUIFacade;
import at.gv.egiz.bku.gui.BKUGUIFactory;
+import java.net.URL;
/**
* Note: all swing code is executed by the event dispatch thread (see
@@ -40,6 +44,8 @@ public class BKUApplet extends JApplet {
public final static String LOGO_URL_KEY = "LogoURL";
public final static String WSDL_URL = "WSDL_URL";
public final static String SESSION_ID = "SessionID";
+ public static final String BACKGROUND_PARAM = "background";
+
protected ResourceBundle resourceBundle;
protected BKUWorker worker;
protected Thread workerThread;
@@ -58,8 +64,17 @@ public class BKUApplet extends JApplet {
} else {
resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE_BASE);
}
+ String backgroundString = getMyAppletParameter(BACKGROUND_PARAM);
+ URL background = null;
+ if (backgroundString != null) {
+ try {
+ background = new URL(backgroundString);
+ } catch (MalformedURLException ex) {
+ log.warn(ex.getMessage() + ", using default background");
+ }
+ }
BKUGUIFacade gui = BKUGUIFactory.createGUI();
- gui.init(getContentPane(), localeString);
+ gui.init(getContentPane(), localeString, background);
worker = new BKUWorker(gui, this, resourceBundle);
}