diff options
Diffstat (limited to 'BKUApplet/src/main/java')
-rw-r--r-- | BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java | 15 |
1 files changed, 9 insertions, 6 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 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 |