From 0a2dcc2309a1fceb5e3ee8fe1dbbf89572e8e1f3 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 28 Sep 2005 14:53:45 +0000 Subject: [PATCH] New params --- src/jalview/bin/JalviewLite.java | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) 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); -- 1.7.10.2