static {
/**
- * @j2sNative
+ * @ could do it this way:
*
- * thisApplet.__Info.args =
- * ["open","examples/uniref50.fa","features",
- * "examples/exampleFeatures.txt"];
- */
-
- /**
- * set space-delimited query parameters as arguments to Jalview main
+ * j2sNative
*
- * @j2sNative
- *
- * var hr = decodeURI(document.location.href); var pos =
- * hr.indexOf("?"); if (pos > 0) { thisApplet.__Info.args =
- * hr.substring(pos+1).split(" "); }
+ * J2S.thisApplet.__Info.args = [ "open","examples/uniref50.fa",
+ * "features","examples/exampleFeatures.txt" ];
*/
}
public static void main(String[] args) throws Exception
{
+ if (args.length == 0)
+ {
+ args = new String[] { "open", "examples/uniref50.fa", "features",
+ "examples/exampleFeatures.txt" };
+ }
Jalview.main(args);
//showFocusTimer();
}