From: gmungoc Date: Fri, 12 Feb 2016 16:47:48 +0000 (+0000) Subject: JAL-282 wrap very long id in tooltip X-Git-Tag: Release_2_10_0~296^2~29 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9db8c298fdcb298dc192871d45d57a60517b2add;p=jalview.git JAL-282 wrap very long id in tooltip --- diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index 5dfe581..bbffbab 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -112,8 +112,8 @@ public class IdPanel extends JPanel implements MouseListener, seqAnnotReport.createSequenceAnnotationReport(tip, sequence, av.isShowDBRefs(), av.isShowNPFeats(), sp.seqCanvas.fr.getMinMax()); - setToolTipText("" + sequence.getDisplayId(true) + " " - + tip.toString() + ""); + setToolTipText(JvSwingUtils.wrapTooltip(true, + sequence.getDisplayId(true) + " " + tip.toString())); } }