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