From: amwaterhouse Date: Wed, 28 Sep 2005 16:13:09 +0000 (+0000) Subject: Set frame size each applet X-Git-Tag: Release_2_06~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8aa523a5c524b41c5ed4be23772934ea6b695a90;p=jalview.git Set frame size each applet --- diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index e55d19c..9b73944 100755 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -73,20 +73,20 @@ public class JalviewLite extends Applet } } + AlignFrame.NEW_WINDOW_WIDTH = 700; + AlignFrame.NEW_WINDOW_HEIGHT = 500; try{ param = applet.getParameter("windowWidth"); if (param != null) { int width = Integer.parseInt(param); AlignFrame.NEW_WINDOW_WIDTH = width; - System.out.println(param+" "+width); } param = applet.getParameter("windowHeight"); if (param != null) { int height = Integer.parseInt(param); AlignFrame.NEW_WINDOW_HEIGHT = height; - System.out.println(param+" "+height); } }catch(Exception ex){} @@ -117,10 +117,10 @@ public class JalviewLite extends Applet public static void main(String [] args) { - // if(args.length!=1) + if(args.length!=1) { - // System.out.println("\nUsage: java -jar jalviewApplet.jar fileName\n"); - // System.exit(1); + System.out.println("\nUsage: java -jar jalviewApplet.jar fileName\n"); + System.exit(1); }