From: hansonr Date: Wed, 10 Jul 2019 08:53:56 +0000 (+0100) Subject: JAL-3253-applet minor fix to reduce number of times cell renderer is X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a62e172dc725a573a85ca49552020cc75cfdc1f1;p=jalview.git JAL-3253-applet minor fix to reduce number of times cell renderer is fired. --- 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)); }