3 import jalview.util.Platform;
5 import java.awt.event.ActionEvent;
6 import java.awt.event.ActionListener;
8 import javax.swing.Timer;
11 * Entry point for JalviewJS development.
18 public class JalviewJS2
23 * @ could do it this way:
27 * J2S.thisApplet.__Info.args = [ "open","examples/uniref50.fa",
28 * "features","examples/exampleFeatures.txt", "noannotation" ];
32 public static void main(String[] args) throws Exception
36 args = new String[] { "headless", "open", "examples/uniref50.fa",
38 "examples/exampleFeatures.txt"
48 protected static int focusTime = 0;
50 private static void showFocusTimer()
55 Timer t = new Timer(100, new ActionListener()
59 public void actionPerformed(ActionEvent e)
61 String s = /** @j2sNative document.activeElement.id || */
64 s += " " + (++focusTime);
66 /** @j2sNative document.title = s; */