From 87841c5602b91a6639eddba560456d09951ea2c8 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Tue, 9 Jun 2020 16:32:02 -0500 Subject: [PATCH] JAL-3446 problem with Select-Find tooltip - Just too complex to allow wrapping AND
tags. - Compromise is to not worry about "maximum length" if "
" is used. - Assumption is that if you took the time to put in a
you expect that to be where (and only where) the line breaks are and also to define the width of the tooltip - adds a thin border around the tooltip text. --- src/jalview/gui/JvSwingUtils.java | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/jalview/gui/JvSwingUtils.java b/src/jalview/gui/JvSwingUtils.java index 2f4a0fe..e399236 100644 --- a/src/jalview/gui/JvSwingUtils.java +++ b/src/jalview/gui/JvSwingUtils.java @@ -75,15 +75,16 @@ public final class JvSwingUtils if (ttext.contains("
")) { - String[] htmllines = ttext.split("
"); - for (String line : htmllines) - { - maxLengthExceeded = line.length() > 60; - if (maxLengthExceeded) - { - break; - } - } + maxLengthExceeded = false; +// String[] htmllines = ttext.split("
"); +// for (String line : htmllines) +// { +// maxLengthExceeded = line.length() > 60; +// if (maxLengthExceeded) +// { +// break; +// } +// } } else { @@ -97,7 +98,7 @@ public final class JvSwingUtils return (enclose ? "" : "") // BH 2018 - + "
" + + "
" // + "

" + ttext -- 1.7.10.2