}\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
\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