import jalview.util.Platform;
import jalview.ws.jws2.Jws2Discoverer;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.util.logging.Logger;
import javax.swing.LookAndFeel;
+import javax.swing.Timer;
import javax.swing.UIManager;
import groovy.lang.Binding;
// setLogging(); // BH - for event debugging in JavaScript
instance = new Jalview();
instance.doMain(args);
- }
+}
private static void logClass(String name)
{
package jalview.bin;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.Timer;
+
/**
* Entry point for JalviewJS development.
*
public static void main(String[] args) throws Exception
{
Jalview.main(args);
+ showFocusTimer();
+}
+
+protected static int focusTime = 0;
+
+private static void showFocusTimer() {
+
+ Timer t = new Timer(100, new ActionListener() {
+
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ String s = /** @j2sNative document.activeElement.id || */
+ null;
+
+ s += " " + (++focusTime);
+
+ /** @j2sNative document.title = s; */
+ }
+
+ });
+
+ t.setRepeats(true);
+ if (/** @j2sNative true || */
+ false)
+ t.start();
}
*/
void init()
{
- setBackground(Color.white); // BH 2019
+// setBackground(Color.white); // BH 2019
if (!Jalview.isHeadlessMode())
{
*/
public AlignmentPanel(AlignFrame af, final AlignViewport av)
{
- setBackground(Color.white); // BH 2019
+// setBackground(Color.white); // BH 2019
alignFrame = af;
this.av = av;
setSeqPanel(new SeqPanel(av, this));
*/
public AnnotationPanel(AlignmentPanel ap)
{
- setBackground(Color.white); // BH 2019
+// setBackground(Color.white); // BH 2019
ToolTipManager.sharedInstance().registerComponent(this);
ToolTipManager.sharedInstance().setInitialDelay(0);
static JPanel newJPanel() { // BH 2019
JPanel p = new JPanel();
+ // leaving this in, as it prevents
+ // the checkerboard business, despite how
+ // funky that looks. Remove if you want to.
p.setBackground(Color.white);
return p;
}
private void jbInit() throws Exception
{
- annotationScroller.setBackground(Color.white); // BH 2019
+ // annotationScroller.setBackground(Color.white); // BH 2019
border1 = BorderFactory.createLineBorder(Color.gray, 1);
idPanelHolder.setBorder(null);
-20190114011334
+20190118024414
-20190114011334
+20190118024414