JAL-1933 update threshold on focus lost in text field features/JAL-2295setChimeraAttributes
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 17 Jan 2017 16:20:55 +0000 (16:20 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 17 Jan 2017 16:20:55 +0000 (16:20 +0000)
src/jalview/gui/AnnotationRowFilter.java

index c8bd69c..1b036c1 100644 (file)
@@ -26,6 +26,8 @@ import jalview.datamodel.SequenceGroup;
 import jalview.schemes.AnnotationColourGradient;
 import jalview.util.MessageManager;
 
+import java.awt.event.FocusAdapter;
+import java.awt.event.FocusEvent;
 import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
 import java.util.Vector;
@@ -134,6 +136,14 @@ public abstract class AnnotationRowFilter extends JPanel
   {
     this.av = av;
     this.ap = ap;
+    thresholdValue.addFocusListener(new FocusAdapter()
+    {
+      @Override
+      public void focusLost(FocusEvent e)
+      {
+        thresholdValue_actionPerformed();
+      }
+    });
   }
 
   public AnnotationRowFilter()