I have a shape on a JPanel, and when the user moves the mouse over it, I want to show a tooltip immediately. The tooltip should not be refreshed as long as the mouse is within the shape. When the mouse leaves the shape, the tooltip should disappear.
Any ideas? When I use setToolTipText, the tooltip does not pop up immediately.