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
26 * J2S.thisApplet.__Info.args =
27 * ["open","examples/uniref50.fa","features",
28 * "examples/exampleFeatures.txt"];
32 public static void main(String[] args) throws Exception
38 protected static int focusTime = 0;
40 private static void showFocusTimer()
45 Timer t = new Timer(100, new ActionListener()
49 public void actionPerformed(ActionEvent e)
51 String s = /** @j2sNative document.activeElement.id || */
54 s += " " + (++focusTime);
56 /** @j2sNative document.title = s; */