X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FJvSwingUtils.java;fp=src%2Fjalview%2Fgui%2FJvSwingUtils.java;h=41287d29fd49047ae59c9c41ce44f9dabf2701ae;hb=4f77328104498504339216829abf5ea87e2791ec;hp=c1c8c829c017c2ec96773f345e605c8bbb3d8ed8;hpb=2b8c0785318a3528e1876e8e2dd48b7d831eae69;p=jalview.git diff --git a/src/jalview/gui/JvSwingUtils.java b/src/jalview/gui/JvSwingUtils.java index c1c8c82..41287d2 100644 --- a/src/jalview/gui/JvSwingUtils.java +++ b/src/jalview/gui/JvSwingUtils.java @@ -61,8 +61,7 @@ public final class JvSwingUtils * style class specifying word-wrap and break-word * * @param enclose - * if true, add <html> wrapper tags (currently false for only - * two references -- both in Jws2Discoverer -- + * if true, add <html> wrapper tags * @param ttext * * @return @@ -95,12 +94,21 @@ public final class JvSwingUtils { return enclose ? "" + ttext + "" : ttext; } - // BH 2018,2019 - return (enclose - ? "
" + + return (enclose ? "" : "") + + // BH 2018 + + + "
" + +// + "

" + + ttext - + "

" - : ttext); + + + "
" +// + "

" + + ((enclose ? "" : "")); } @@ -322,13 +330,13 @@ public final class JvSwingUtils * @param entries * @param tooltips */ - public static JComboBox buildComboWithTooltips( - List entries, List tooltips) + public static JComboBox buildComboWithTooltips( + List entries, List tooltips) { - JComboBox combo = new JComboBox<>(); + JComboBox combo = new JComboBox<>(); final ComboBoxTooltipRenderer renderer = new ComboBoxTooltipRenderer(); combo.setRenderer(renderer); - for (String attName : entries) + for (Object attName : entries) { combo.addItem(attName); }