From: amwaterhouse Date: Mon, 7 Feb 2005 17:06:34 +0000 (+0000) Subject: load properties on startup X-Git-Tag: Release_2_0~697 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=41f9f9ed655548da2c50dfa9991bccbb44ecbb87;p=jalview.git load properties on startup --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index f23bcc9..35fc4c9 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -12,7 +12,8 @@ package jalview.bin; import jalview.gui.*; import javax.swing.*; import java.awt.event.*; -import java.applet.Applet; +import jalview.io.*; + public class Jalview extends JApplet { @@ -39,7 +40,7 @@ public class Jalview extends JApplet if(file!=null) { - jalview.bin.Cache.LAST_DIRECTORY = file; + jalview.bin.Cache.setProperty("LAST_DIRECTORY", file); String protocol = "File"; if (file.indexOf("http:") > -1) protocol = "URL"; @@ -60,7 +61,10 @@ public class Jalview extends JApplet } public static void main(String[] args) { - try{ + + Cache.loadProperties(); + + try{ UIManager.setLookAndFeel( // "javax.swing.plaf.metal.MetalLookAndFeel" // "javax.swing.plaf.multi.MultiLookAndFeel" @@ -82,7 +86,6 @@ public class Jalview extends JApplet if(args!=null && args.length>0) { String file = args[0]; - jalview.bin.Cache.LAST_DIRECTORY = file; String protocol = "File"; if(file.indexOf("http:")>-1) protocol = "URL"; @@ -95,3 +98,4 @@ public class Jalview extends JApplet } } +