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
38 "open", "examples/uniref50.fa",
40 // "examples/exampleFeatures.txt"
43 //, "png", "test-bh.png"
47 // String cmds = "nodisplay -open examples/uniref50.fa -sortbytree -props
48 // test/jalview/io/testProps.jvprops -colour zappo "
49 // + "-jabaws http://www.compbio.dundee.ac.uk/jabaws -nosortbytree "
50 // + "-features examples/testdata/plantfdx.features -annotations
51 // examples/testdata/plantfdx.annotations -tree
52 // examples/testdata/uniref50_test_tree";
53 // args = cmds.split(" ");
58 protected static int focusTime = 0;
60 private static void showFocusTimer()
65 Timer t = new Timer(100, new ActionListener()
69 public void actionPerformed(ActionEvent e)
71 String s = /** @j2sNative document.activeElement.id || */
74 s += " " + (++focusTime);
76 /** @j2sNative document.title = s; */