Class TooltipUtilities

java.lang.Object
com.inductiveautomation.ignition.designer.gui.util.TooltipUtilities

public class TooltipUtilities extends Object
  • Method Details

    • setTooltip

      public static void setTooltip(JComponent component, String text, int maxWidth)
      This will set a tooltip on the passed component with the specified text to a max width of maxWidth.

      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.