New params
authoramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 14:53:45 +0000 (14:53 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 14:53:45 +0000 (14:53 +0000)
src/jalview/bin/JalviewLite.java

index 75f5991..e55d19c 100755 (executable)
@@ -73,6 +73,23 @@ public class JalviewLite extends Applet
             }\r
         }\r
 \r
+        try{\r
+          param = applet.getParameter("windowWidth");\r
+          if (param != null)\r
+          {\r
+            int width = Integer.parseInt(param);\r
+            AlignFrame.NEW_WINDOW_WIDTH = width;\r
+            System.out.println(param+" "+width);\r
+          }\r
+          param = applet.getParameter("windowHeight");\r
+          if (param != null)\r
+          {\r
+            int height = Integer.parseInt(param);\r
+            AlignFrame.NEW_WINDOW_HEIGHT = height;\r
+            System.out.println(param+" "+height);\r
+          }\r
+        }catch(Exception ex){}\r
+\r
         this.setBackground(new Color(r, g, b));\r
 \r
         file = getParameter("file");\r
@@ -100,12 +117,13 @@ public class JalviewLite extends Applet
 \r
     public static void main(String [] args)\r
     {\r
-      if(args.length!=1)\r
+     // if(args.length!=1)\r
       {\r
-        System.out.println("\nUsage: java -jar jalviewApplet.jar fileName\n");\r
-        System.exit(1);\r
+      //  System.out.println("\nUsage: java -jar jalviewApplet.jar fileName\n");\r
+      //  System.exit(1);\r
       }\r
 \r
+\r
       String format = jalview.io.IdentifyFile.Identify(args[0],"File");\r
       SequenceI[] sequences = new FormatAdapter().readFile(args[0], "File", format);\r
 \r