From: amwaterhouse Date: Wed, 28 Sep 2005 14:53:45 +0000 (+0000) Subject: New params X-Git-Tag: Release_2_06~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0a2dcc2309a1fceb5e3ee8fe1dbbf89572e8e1f3;p=jalview.git New params --- diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index 75f5991..e55d19c 100755 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -73,6 +73,23 @@ public class JalviewLite extends Applet } } + 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){} + this.setBackground(new Color(r, g, b)); file = getParameter("file"); @@ -100,12 +117,13 @@ 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); } + String format = jalview.io.IdentifyFile.Identify(args[0],"File"); SequenceI[] sequences = new FormatAdapter().readFile(args[0], "File", format);