X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FJvSwingUtils.java;h=d44080a09cbd9cba0f7ea109cf824bbf44920b6a;hb=14ec98716bf86e13337e30eeaa8355b2284a6e4c;hp=79e0cefaa88418be0fc51af172d486e637fc1b62;hpb=924cfa64826c1c4d7f14672d6f773567acf46282;p=jalview.git diff --git a/src/jalview/gui/JvSwingUtils.java b/src/jalview/gui/JvSwingUtils.java index 79e0cef..d44080a 100644 --- a/src/jalview/gui/JvSwingUtils.java +++ b/src/jalview/gui/JvSwingUtils.java @@ -96,8 +96,19 @@ public final class JvSwingUtils } return (enclose ? "" : "") - + "

" - + ttext + "

" + ((enclose ? "" : "")); + + // BH 2018 + + + "
" + +// + "

" + + + ttext + + + "

" +// + "

" + + ((enclose ? "" : "")); } @@ -356,12 +367,13 @@ public final class JvSwingUtils /** * Adds a titled border to the component in the default font and position (top - * left) + * left), optionally witht italic text * * @param comp * @param title + * @param italic */ - public static void createItalicTitledBorder(JComponent comp, + public static TitledBorder createTitledBorder(JComponent comp, String title, boolean italic) { Font font = comp.getFont(); @@ -374,6 +386,8 @@ public final class JvSwingUtils title, TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION, font); comp.setBorder(titledBorder); + + return titledBorder; } }