I have got a component. The ToolTip of the component is set by the setToolTipText() method. On the first monitor everything works fine. Now when I move the frame to the second monitor, the tooltips are displayed at the edge of the monitor (on the side to the firt monitor). This happens only with tooltips of this component. The problem appeares on other machines, too. Yet, I've only tested it with Vista.
Why is this? Is this a bug in Swing? How can I fix it?
The tooltip-text depends on the mouse cursor location. Therefore I may edit the code and override the getToolTipText(MouseEvent e) method. It would be realy nice to know, whats the reason for this problem, before starting to change the code.
Thanks in advance.