From 7381a549557ff474469b7b805f2506eba8220420 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Wed, 26 Feb 2014 10:30:04 +0100 Subject: New Gateway property API --- src/main/java/com/c2kernel/gui/MainFrame.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/c2kernel/gui/MainFrame.java') diff --git a/src/main/java/com/c2kernel/gui/MainFrame.java b/src/main/java/com/c2kernel/gui/MainFrame.java index 5edef4a..62418d1 100644 --- a/src/main/java/com/c2kernel/gui/MainFrame.java +++ b/src/main/java/com/c2kernel/gui/MainFrame.java @@ -97,7 +97,7 @@ public class MainFrame extends javax.swing.JFrame { public void showLogin() { // Log in - logoURL = Gateway.getProperty("Logo"); + logoURL = Gateway.getProperties().getProperty("Logo"); URL pictureUrl; String bottomMessage = Language.translate("Please enter username & password"); @@ -112,7 +112,7 @@ public class MainFrame extends javax.swing.JFrame { LoginBox login = new LoginBox( 5, - Gateway.getProperty("Name"), + Gateway.getProperties().getProperty("Name"), getPref("lastUser."+Gateway.getCentreId(), null), bottomMessage, imageHolder, this); @@ -127,9 +127,9 @@ public class MainFrame extends javax.swing.JFrame { getContentPane().setLayout(gridbag); this.setTitle( - userAgent.getName()+"@"+Gateway.getProperty("Name") + " - " + Language.translate("Cristal 2")); + userAgent.getName()+"@"+Gateway.getProperties().getProperty("Name") + " - " + Language.translate("Cristal 2")); - String iconFile = Gateway.getProperty("AppIcon"); + String iconFile = Gateway.getProperties().getProperty("AppIcon"); if (iconFile != null) this.setIconImage(ImageLoader.findImage(iconFile).getImage()); @@ -267,7 +267,7 @@ public class MainFrame extends javax.swing.JFrame { plugins.setSelectedIndex(0); // load execution plugins - String pluginList = Gateway.getProperty("Executors"); + String pluginList = Gateway.getProperties().getProperty("Executors"); if (pluginList != null) { StringTokenizer tok = new StringTokenizer(pluginList, ","); while (tok.hasMoreTokens()) { -- cgit v1.2.3