From: gmungoc Date: Tue, 17 Jan 2017 16:20:55 +0000 (+0000) Subject: JAL-1933 update threshold on focus lost in text field X-Git-Tag: Release_2_10_2~3^2~173^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ffeatures%2FJAL-2295setChimeraAttributes;p=jalview.git JAL-1933 update threshold on focus lost in text field --- diff --git a/src/jalview/gui/AnnotationRowFilter.java b/src/jalview/gui/AnnotationRowFilter.java index c8bd69c..1b036c1 100644 --- a/src/jalview/gui/AnnotationRowFilter.java +++ b/src/jalview/gui/AnnotationRowFilter.java @@ -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()