3 import java.awt.event.ActionEvent;
4 import java.awt.event.ActionListener;
6 import javax.swing.Timer;
9 * Entry point for JalviewJS development.
16 public class JalviewJS2
23 * thisApplet.__Info.args =
24 * ["open","examples/uniref50.fa","features",
25 * "examples/exampleFeatures.txt"];
29 * set space-delimited query parameters as arguments to Jalview main
33 * var hr = decodeURI(document.location.href); var pos =
34 * hr.indexOf("?"); if (pos > 0) { thisApplet.__Info.args =
35 * hr.substring(pos+1).split(" "); }
39 public static void main(String[] args) throws Exception
45 protected static int focusTime = 0;
47 private static void showFocusTimer() {
49 Timer t = new Timer(100, new ActionListener() {
52 public void actionPerformed(ActionEvent e) {
53 String s = /** @j2sNative document.activeElement.id || */
56 s += " " + (++focusTime);
58 /** @j2sNative document.title = s; */
64 if (/** @j2sNative true || */