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" ];
32 public static void main(String[] args) throws Exception
36 args = new String[] { "open", "examples/uniref50.fa", "features",
37 "examples/exampleFeatures.txt" };
43 protected static int focusTime = 0;
45 private static void showFocusTimer()
50 Timer t = new Timer(100, new ActionListener()
54 public void actionPerformed(ActionEvent e)
56 String s = /** @j2sNative document.activeElement.id || */
59 s += " " + (++focusTime);
61 /** @j2sNative document.title = s; */