Set frame size each applet
authoramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 16:13:09 +0000 (16:13 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 16:13:09 +0000 (16:13 +0000)
src/jalview/bin/JalviewLite.java

index e55d19c..9b73944 100755 (executable)
@@ -73,20 +73,20 @@ public class JalviewLite extends Applet
             }\r
         }\r
 \r
+        AlignFrame.NEW_WINDOW_WIDTH = 700;\r
+        AlignFrame.NEW_WINDOW_HEIGHT = 500;\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
@@ -117,10 +117,10 @@ 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