X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FJvSwingUtils.java;h=e7f992dd37faff03ba188e5f32600d10a4a1a75e;hb=afe4b88500a5d61bc8d312909cfdde2b7cdd53df;hp=052c3145a6fc0552da876cac47869d1fafc45aaf;hpb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;p=jalview.git diff --git a/src/jalview/gui/JvSwingUtils.java b/src/jalview/gui/JvSwingUtils.java index 052c314..e7f992d 100644 --- a/src/jalview/gui/JvSwingUtils.java +++ b/src/jalview/gui/JvSwingUtils.java @@ -20,18 +20,22 @@ */ package jalview.gui; -import jalview.util.MessageManager; - import java.awt.BorderLayout; import java.awt.Color; +import java.awt.Component; import java.awt.Font; import java.awt.GridLayout; import java.awt.Rectangle; import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.util.List; import java.util.Objects; import javax.swing.AbstractButton; +import javax.swing.BorderFactory; import javax.swing.JButton; +import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JMenu; @@ -39,6 +43,10 @@ import javax.swing.JMenuItem; import javax.swing.JPanel; import javax.swing.JScrollBar; import javax.swing.SwingConstants; +import javax.swing.border.Border; +import javax.swing.border.TitledBorder; + +import jalview.util.MessageManager; /** * useful functions for building Swing GUIs @@ -60,7 +68,8 @@ public final class JvSwingUtils */ public static String wrapTooltip(boolean enclose, String ttext) { - Objects.requireNonNull(ttext, "Tootip text to format must not be null!"); + Objects.requireNonNull(ttext, + "Tootip text to format must not be null!"); ttext = ttext.trim(); boolean maxLengthExceeded = false; @@ -87,9 +96,14 @@ public final class JvSwingUtils } return (enclose ? "" : "") - + "
" - + ttext + "
" + ((enclose ? "" : "")); - + // BH 2018 + + "" + + ttext + "