Class TipUtil


  • public class TipUtil
    extends Object
    Static utility methods for focusable tips.
    Version:
    1.0
    Author:
    Robert Futrell
    • Method Detail

      • getToolTipBackground

        public static Color getToolTipBackground()
        Returns the default background color to use for tool tip windows.
        Returns:
        The default background color.
      • tweakTipEditorPane

        public static void tweakTipEditorPane​(JEditorPane textArea)
        Tweaks a JEditorPane so it can be used to render the content in a focusable pseudo-tool tip. It is assumed that the editor pane is using an HTMLDocument.
        Parameters:
        textArea - The editor pane to tweak.
      • addCopyContextMenu

        public static void addCopyContextMenu​(FocusableTip focusableTip)
        Add context menu for paste selected content
        Parameters:
        focusableTip - to add copy context menu
      • addCopyContextMenu

        protected static void addCopyContextMenu​(TipWindow tipWindows)