From a62e172dc725a573a85ca49552020cc75cfdc1f1 Mon Sep 17 00:00:00 2001 From: hansonr Date: Wed, 10 Jul 2019 09:53:56 +0100 Subject: [PATCH] JAL-3253-applet minor fix to reduce number of times cell renderer is fired. --- src/jalview/gui/ComboBoxTooltipRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/ComboBoxTooltipRenderer.java b/src/jalview/gui/ComboBoxTooltipRenderer.java index 684f965..a601ed6 100644 --- a/src/jalview/gui/ComboBoxTooltipRenderer.java +++ b/src/jalview/gui/ComboBoxTooltipRenderer.java @@ -48,7 +48,8 @@ public class ComboBoxTooltipRenderer extends DefaultListCellRenderer JComponent comp = (JComponent) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); - if (-1 < index && null != value && null != tooltips) + // BH 2019.07.07 restricting this to mouse moves over the selected target + if (isSelected && -1 < index && null != value && null != tooltips) { list.setToolTipText(tooltips.get(index)); } -- 1.7.10.2