canvas line/font/pixel fixes; menu accelerators;
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Fri, 18 Jan 2019 08:57:57 +0000 (02:57 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Fri, 18 Jan 2019 08:57:57 +0000 (02:57 -0600)
12 files changed:
src/jalview/bin/Jalview.java
src/jalview/bin/JalviewJS2.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/AlignmentPanel.java
src/jalview/gui/AnnotationPanel.java
src/jalview/jbgui/GAlignmentPanel.java
swingjs/SwingJS-site.zip
swingjs/net.sf.j2s.core.jar
swingjs/timestamp
swingjs/ver/3.2.4/SwingJS-site.zip
swingjs/ver/3.2.4/net.sf.j2s.core.jar
swingjs/ver/3.2.4/timestamp

index 807105a..4684f01 100755 (executable)
@@ -41,6 +41,8 @@ import jalview.util.MessageManager;
 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;
@@ -65,6 +67,7 @@ import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import javax.swing.LookAndFeel;
+import javax.swing.Timer;
 import javax.swing.UIManager;
 
 import groovy.lang.Binding;
@@ -210,7 +213,7 @@ public class Jalview
 //     setLogging(); // BH - for event debugging in JavaScript
     instance = new Jalview();
     instance.doMain(args);
-  }
+}
 
   private static void logClass(String name) 
   {    
index 516cc20..eff5334 100644 (file)
@@ -1,5 +1,10 @@
 package jalview.bin;
 
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.Timer;
+
 /**
  * Entry point for JalviewJS development. 
  * 
@@ -33,6 +38,31 @@ public class JalviewJS2
   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();
   }
 
 
index c1edeab..71ba94a 100644 (file)
@@ -337,7 +337,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
    */
   void init()
   {
-         setBackground(Color.white); // BH 2019
+//       setBackground(Color.white); // BH 2019
                  
     if (!Jalview.isHeadlessMode())
     {
index 9ae5b8b..0ea2b8a 100644 (file)
@@ -116,7 +116,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
    */
   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));
index 71b7eac..3212156 100755 (executable)
@@ -149,7 +149,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
    */
   public AnnotationPanel(AlignmentPanel ap)
   {
-           setBackground(Color.white);  // BH 2019
+//         setBackground(Color.white);  // BH 2019
 
            ToolTipManager.sharedInstance().registerComponent(this);
     ToolTipManager.sharedInstance().setInitialDelay(0);
index bf4f645..29a0cc0 100755 (executable)
@@ -62,6 +62,9 @@ public class GAlignmentPanel extends JPanel
          
          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;
          }
@@ -90,7 +93,7 @@ public class GAlignmentPanel extends JPanel
 
   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);
index 998fe42..6291264 100644 (file)
Binary files a/swingjs/SwingJS-site.zip and b/swingjs/SwingJS-site.zip differ
index bc730ea..56c61d0 100644 (file)
Binary files a/swingjs/net.sf.j2s.core.jar and b/swingjs/net.sf.j2s.core.jar differ
index 12b8bac..7c45c3c 100644 (file)
@@ -1 +1 @@
-20190114011334 
+20190118024414 
index 998fe42..6291264 100644 (file)
Binary files a/swingjs/ver/3.2.4/SwingJS-site.zip and b/swingjs/ver/3.2.4/SwingJS-site.zip differ
index bc730ea..56c61d0 100644 (file)
Binary files a/swingjs/ver/3.2.4/net.sf.j2s.core.jar and b/swingjs/ver/3.2.4/net.sf.j2s.core.jar differ
index 12b8bac..7c45c3c 100644 (file)
@@ -1 +1 @@
-20190114011334 
+20190118024414