I have a component. The tool ToolTip of the component is installed using the setToolTipText () method. Everything works fine on the first monitor. Now, when I move the frame to the second monitor, tooltips are displayed on the edge of the monitor (to the side of the monitor). This only happens with the tips of this component. The problem also occurs on other machines. However, I only tested it with Vista.
Why is this? Is this a bug in Swing? How can i fix this?
The hint text depends on the location of the mouse cursor. Therefore, I can edit the code and override the getToolTipText (MouseEvent e) method. It would be very nice to know what is the cause of this problem before starting to change the code.
Thanks in advance.
java swing tooltip multiple-monitors
c0d3x
source share