public class LogTooltipHelper
extends java.lang.Object
This class has been written because the same method is called in different places.
| Constructor and Description |
|---|
LogTooltipHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setToolTip(javax.swing.JComponent c,
java.lang.String text,
int colWidth)
Format the string before setting the tooltip for the given component
The tooltip is shown only if the text is not visible (i.e.
|
public static void setToolTip(javax.swing.JComponent c,
java.lang.String text,
int colWidth)
To show the string as multi-line it is transformed in HTML and
\n are replaced by <BR>.
To show strings containing HTML and/or XML the <PRE> tag is used
(for this reason existing < and > in the original string are replaced by < and >)
c - The component to set the tooltiptext - The HTML string to display in the tooltipcolWidth - The max number of chars for each line of the tooltip