Class ScrollableTooltipPopup
java.lang.Object
uno.anahata.ai.swing.ScrollableTooltipPopup
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(JComponent targetComponent) Attaches the popup behavior to a target component.voidhide()voidsetContent(String content) Sets the content to be displayed in the popup.
-
Constructor Details
-
ScrollableTooltipPopup
public ScrollableTooltipPopup()
-
-
Method Details
-
attach
Attaches the popup behavior to a target component.- Parameters:
targetComponent- The component that triggers the popup on hover.
-
setContent
Sets the content to be displayed in the popup.- Parameters:
content- The full text content.
-
hide
public void hide()
-
