Class TooltipUtilities
java.lang.Object
com.inductiveautomation.ignition.designer.gui.util.TooltipUtilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setTooltip
(JComponent component, String text, int maxWidth) This will set a tooltip on the passedcomponent
with the specifiedtext
to a max width ofmaxWidth
.
-
Method Details
-
setTooltip
This will set a tooltip on the passedcomponent
with the specifiedtext
to a max width ofmaxWidth
.
Note, that the text to display will be wrapped in HTML. So certain characters like "<" and ">" must be escaped.
- Parameters:
component
- Where the tooltip will be set.text
- Text will be wrapped in HTML, so certain characters like "<" and ">" will need to be escaped.maxWidth
- The width at which, text will wrap. This is the max width of the tooltip bounding box.
-