Class ScrollableTooltipPopup

java.lang.Object
uno.anahata.ai.swing.ScrollableTooltipPopup

public class ScrollableTooltipPopup extends Object
A reusable utility class to display a scrollable JTextArea inside a JPopupMenu when hovering over a target component. This is a refactored version of the logic previously in ContextHeatmapPanel.
  • Constructor Details

    • ScrollableTooltipPopup

      public ScrollableTooltipPopup()
  • Method Details

    • attach

      public void attach(JComponent targetComponent)
      Attaches the popup behavior to a target component.
      Parameters:
      targetComponent - The component that triggers the popup on hover.
    • setContent

      public void setContent(String content)
      Sets the content to be displayed in the popup.
      Parameters:
      content - The full text content.
    • hide

      public void hide()