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[] { "open", "examples/uniref50.fa", "features",
37 "examples/exampleFeatures.txt"
46 protected static int focusTime = 0;
48 private static void showFocusTimer()
53 Timer t = new Timer(100, new ActionListener()
57 public void actionPerformed(ActionEvent e)
59 String s = /** @j2sNative document.activeElement.id || */
62 s += " " + (++focusTime);
64 /** @j2sNative document.title = s; */