From df6a1f22d79f90e0cbdd6bd7463cd3d0c2ed1e42 Mon Sep 17 00:00:00 2001 From: clemenso Date: Fri, 16 Jul 2010 11:44:24 +0000 Subject: enforceRecommendedPinLength param not included by default git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@783 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/bku/online/applet/BKUApplet.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'BKUApplet/src/main/java/at/gv') 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 b7b72b5d..2876c56e 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 @@ -165,8 +165,8 @@ public class BKUApplet extends JApplet { if (Boolean.parseBoolean(getParameter(ENFORCE_RECOMMENDED_PIN_LENGTH))) { SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH = true; - log.debug("Enforce recommended pin length = {}.", SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH); } + log.debug("Enforce recommended pin length = {}.", SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH); BKUGUIFacade.Style guiStyle; String guiStyleParam = getParameter(GUI_STYLE); @@ -219,17 +219,20 @@ public class BKUApplet extends JApplet { } } + BKUGUIFacade gui = null; + URLFontLoader fontProvider = null; + try { - URLFontLoader fontProvider = new URLFontLoader(getCodeBase()); + fontProvider = new URLFontLoader(getCodeBase()); fontProvider.loadInBackground(); - BKUGUIFacade gui = createGUI(contentPanel, getLocale(), guiStyle, - backgroundImgURL, fontProvider, helpListener, switchFocusListener); - - worker = createBKUWorker(this, gui); + } catch (MalformedURLException ex) { log.error("Failed to load font provider URL.", ex); System.err.println("invalid font provider URL " + ex.getMessage()); } + gui = createGUI(contentPanel, getLocale(), guiStyle, + backgroundImgURL, fontProvider, helpListener, switchFocusListener); + worker = createBKUWorker(this, gui); } @Override -- cgit v1.2.3