From c5cece0a9d56e59293c8e6497b5afa6e26842646 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 17 Jan 2017 16:20:55 +0000 Subject: [PATCH] JAL-1933 update threshold on focus lost in text field --- src/jalview/gui/AnnotationRowFilter.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() -- 1.7.10.2