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"];
31 * hr = decodeURI(document.location.href);
32 * pos = hr.indexOf("?");
33 * // set space-delimited query parameters as arguments to Jalview main
36 * thisApplet.__Info.args = hr.substring(pos+1).split(" ");
41 public static void main(String[] args) throws Exception
47 protected static int focusTime = 0;
49 private static void showFocusTimer() {
51 Timer t = new Timer(100, new ActionListener() {
54 public void actionPerformed(ActionEvent e) {
55 String s = /** @j2sNative document.activeElement.id || */
58 s += " " + (++focusTime);
60 /** @j2sNative document.title = s; */
66 if (/** @j2sNative true || */