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
25 * J2S.thisApplet.__Info.args =
26 * ["open","examples/uniref50.fa","features",
27 * "examples/exampleFeatures.txt"];
31 public static void main(String[] args) throws Exception
37 protected static int focusTime = 0;
39 private static void showFocusTimer()
44 Timer t = new Timer(100, new ActionListener()
48 public void actionPerformed(ActionEvent e)
50 String s = /** @j2sNative document.activeElement.id || */
53 s += " " + (++focusTime);
55 /** @j2sNative document.title = s; */